v3.0.0-rc
Last updated
Was this helpful?
Last updated
Was this helpful?
Add define()
, isValidationError()
static method to the ValidationError
object.
Add the generic type variable Id
to the ValidationError
.
Add [Symbol.toStringTag]()
get accessor to return the object different class name.
Add ValidationErrors
object that is is an extension of the CommonErrors
object that represents multiple identification numbers under which the errors of the ValidationError
type are prepared to throw.
Add TypeErrors
object that is an extension of the CommonErrors
object that represents multiple identification numbers under which the errors of the TypeError
type are prepared to throw.
Add TypeError
object that is an extension of the CommonError
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.
Add RangeErrors
object that is an extension of the CommonErrors
object that represents multiple identification numbers under which the errors of the RangeError
type are prepared to throw.
Add RangeError
object that is an extension of the CommonError
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.
Add Errors
object that is an extension of the CommonErrors
object that represents multiple identification numbers under which the errors of the Error
type are prepared to throw.
Add Error
object that is an extension of the CommonError
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.
Add CommonErrors
object that represents the storage of errors with unique identification numbers.
Add CommonError
abstract object to throw an identified error with a solution to the described problem, additional type, and range built on the template.
Change the constructor()
of the ValidationError
to use direct parameters instead of object.
Change #tpl
property to #template
and the default value to Problem{id}: {problem} => Fix: {fix}
.
Change the property name
to name
accessor.
Remove #callback
private property from the ValidationError
to simplify the object.
Remove VEAllowedCallback
type and ErrorMessage
interface to simplify the object.
Remove set problem()
, set message()
, set fix()
, set template()
accessors of an ValidationError
instance.
Remove #guardMessage()
, #guardTemplate()
, defineMessage()
, static method from the ValidationError()
.
Remove updateMessage()
, throw()
, setTemplate()
, setProblem()
, setMessage()
, setFix()
instance method from the ValidationError()
.