v3.0.0-rc
[3.0.0-rc] - 2022-02-16
Added
Add the generic type variable
Id
to theValidationError
. eb2d8e2Add
[Symbol.toStringTag]()
get accessor to return the object different class name. eb2d8e2Add
ValidationErrors
object that is is an extension of theCommonErrors
object that represents multiple identification numbers under which the errors of theValidationError
type are prepared to throw. 43a0162Add
TypeErrors
object that is an extension of theCommonErrors
object that represents multiple identification numbers under which the errors of theTypeError
type are prepared to throw. ff2feebAdd
TypeError
object that is an extension of theCommonError
class 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
RangeErrors
object that is an extension of theCommonErrors
object that represents multiple identification numbers under which the errors of theRangeError
type are prepared to throw. 72b8582Add
RangeError
object that is an extension of theCommonError
class 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
Errors
object that is an extension of theCommonErrors
object that represents multiple identification numbers under which the errors of theError
type are prepared to throw. a5f391cAdd
Error
object that is an extension of theCommonError
class 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
CommonErrors
object that represents the storage of errors with unique identification numbers. a17461bAdd
CommonError
abstract 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 theValidationError
to use direct parameters instead of object.Change
#tpl
property to#template
and the default value toProblem{id}: {problem} => Fix: {fix}
.Change the property
name
toname
accessor.
Removed
Remove
#callback
private property from theValidationError
to simplify the object.Remove
set problem()
,set message()
,set fix()
,set template()
accessors of anValidationError
instance. b261662Remove
#guardMessage()
,#guardTemplate()
,defineMessage()
, static method from theValidationError()
. b261662Remove
updateMessage()
,throw()
,setTemplate()
,setProblem()
,setMessage()
,setFix()
instance method from theValidationError()
. b261662
Last updated