All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Add
define(),isValidationError()static method to theValidationErrorobject. b261662 eb2d8e2 - Add the generic type variable
Idto theValidationError. eb2d8e2 - Add
[Symbol.toStringTag]()get accessor to return the object different class name. eb2d8e2 - Add
ValidationErrorsobject that is is an extension of theCommonErrorsobject that represents multiple identification numbers under which the errors of theValidationErrortype are prepared to throw. 43a0162 - Add
TypeErrorsobject that is an extension of theCommonErrorsobject that represents multiple identification numbers under which the errors of theTypeErrortype are prepared to throw. ff2feeb - Add
TypeErrorobject that is an extension of theCommonErrorclass and is thrown when an operation could not be performed, typically(but not exclusively) when a value is not of the expected type, with the message built from the described problem and its solution, optional an explicit identification and type, on the given or stored template. 8112c16 - Add
RangeErrorsobject that is an extension of theCommonErrorsobject that represents multiple identification numbers under which the errors of theRangeErrortype are prepared to throw. 72b8582 - Add
RangeErrorobject that is an extension of theCommonErrorclass and is thrown when a value is not in the set or range of allowed values with the message built from the described problem and its solution, optional explicit identification and minimum/maximum range on the given or stored template. 77e4e0a - Add
Errorsobject that is an extension of theCommonErrorsobject that represents multiple identification numbers under which the errors of theErrortype are prepared to throw. a5f391c - Add
Errorobject that is an extension of theCommonErrorclass and is thrown when a runtime error occurs with a message built from a solution to the described problem but with additional identification, on the template. 789083e - Add
CommonErrorsobject that represents the storage of errors with unique identification numbers. a17461b - Add
CommonErrorabstract object to throw an identified error with a solution to the described problem, additional type, and range built on the template. 9089375
- Change the
constructor()of theValidationErrorto use direct parameters instead of object. - Change
#tplproperty to#templateand the default value toProblem{id}: {problem} => Fix: {fix}. - Change the property
nametonameaccessor.
- Remove
#callbackprivate property from theValidationErrorto simplify the object. - Remove
VEAllowedCallbacktype andErrorMessageinterface to simplify the object. 00229cd 30716b2 - Remove
set problem(),set message(),set fix(),set template()accessors of anValidationErrorinstance. b261662 - Remove
#guardMessage(),#guardTemplate(),defineMessage(), static method from theValidationError(). b261662 - Remove
updateMessage(),throw(),setTemplate(),setProblem(),setMessage(),setFix()instance method from theValidationError(). b261662
ff06f3a
Fixedpackage.jsonpeer dependencies cause of@angular-package/callback.
069d111
Add static private property#templateof astringtype.
Add private instance#callbackproperty ofCallbackinstance.
Add private instance#fix,#problem,#tplproperty.
Add pubic methodssetFix(),setMessage(),setProblem(),setTemplate(),throw(),updateMessage()of an instance.
Add static private methods#guardMessage(),#guardTemplate().4040750
Add an optional propertytemplateto theErrorMessageinterface.0d5cc92
AddVEAllowedCallbacktype of allowed names for internal instance ofCallback.
069d111
Changed static publictemplateproperty to use static private#templateproperty that is guarded by the private static#guardTemplate()method.
Changed instancefixproperty to use private#fix.
Changed instanceproblemproperty to use private#problem.
Changed public staticdefineMessage()method to use private static#guardMessage()to guards the providedmessage.
Changed constructor to use publicsetMessage()method and add newcallbackparameter to handle private instance ofCallback.0708846bcc65210bbd886
UpdatedREADME.md.
5427c65
Add message builder to api.
- Update
README.md.
253dda9
Fixes thehomepagelink in thepackage.json.
ab8729f
Remove unnecessary peer dependencies.