v3.0.0-rc
[3.0.0-rc] - 2022-02-16
Added
- Add the generic type variable - Idto the- ValidationError. eb2d8e2
- Add - [Symbol.toStringTag]()get accessor to return the object different class name. eb2d8e2
- Add - ValidationErrorsobject that is is an extension of the- CommonErrorsobject that represents multiple identification numbers under which the errors of the- ValidationErrortype are prepared to throw. 43a0162
- Add - TypeErrorsobject that is an extension of the- CommonErrorsobject that represents multiple identification numbers under which the errors of the- TypeErrortype are prepared to throw. ff2feeb
- Add - TypeErrorobject that is an extension of the- CommonErrorclass 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 the- CommonErrorsobject that represents multiple identification numbers under which the errors of the- RangeErrortype are prepared to throw. 72b8582
- Add - RangeErrorobject that is an extension of the- CommonErrorclass 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 the- CommonErrorsobject that represents multiple identification numbers under which the errors of the- Errortype are prepared to throw. a5f391c
- Add - Errorobject that is an extension of the- CommonErrorclass 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
Changed
- Change the - constructor()of the- ValidationErrorto use direct parameters instead of object.
- Change - #tplproperty to- #templateand the default value to- Problem{id}: {problem} => Fix: {fix}.
- Change the property - nameto- nameaccessor.
Removed
- Remove - #callbackprivate property from the- ValidationErrorto simplify the object.
- Remove - set problem(),- set message(),- set fix(),- set template()accessors of an- ValidationErrorinstance. b261662
- Remove - #guardMessage(),- #guardTemplate(),- defineMessage(), static method from the- ValidationError(). b261662
- Remove - updateMessage(),- throw(),- setTemplate(),- setProblem(),- setMessage(),- setFix()instance method from the- ValidationError(). b261662
Last updated
Was this helpful?
