v3.0.0-rc
[3.0.0-rc] - 2022-02-16
Added
Add the generic type variable
Idto theValidationError. eb2d8e2Add
[Symbol.toStringTag]()get accessor to return the object different class name. eb2d8e2Add
ValidationErrorsobject that is is an extension of theCommonErrorsobject that represents multiple identification numbers under which the errors of theValidationErrortype are prepared to throw. 43a0162Add
TypeErrorsobject that is an extension of theCommonErrorsobject that represents multiple identification numbers under which the errors of theTypeErrortype are prepared to throw. ff2feebAdd
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. 8112c16Add
RangeErrorsobject that is an extension of theCommonErrorsobject that represents multiple identification numbers under which the errors of theRangeErrortype are prepared to throw. 72b8582Add
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. 77e4e0aAdd
Errorsobject that is an extension of theCommonErrorsobject that represents multiple identification numbers under which the errors of theErrortype are prepared to throw. a5f391cAdd
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. 789083eAdd
CommonErrorsobject that represents the storage of errors with unique identification numbers. a17461bAdd
CommonErrorabstract object to throw an identified error with a solution to the described problem, additional type, and range built on the template. 9089375
Changed
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.
Removed
Remove
#callbackprivate property from theValidationErrorto simplify the object.Remove
set problem(),set message(),set fix(),set template()accessors of anValidationErrorinstance. b261662Remove
#guardMessage(),#guardTemplate(),defineMessage(), static method from theValidationError(). b261662Remove
updateMessage(),throw(),setTemplate(),setProblem(),setMessage(),setFix()instance method from theValidationError(). b261662
Last updated
Was this helpful?