★ Constructor
The `ValidationError` constructor
ValidationError()
ValidationError()
Creates the ValidationError
instance that represents validation error with the message built of the given described problem, its solution, and optional explicit identification, on the supplied or stored error message template.
validation-error.class.ts
Parameters
Description of the problem of a string
type.
A solution to the given problem
of a string
type.
Optional unique identification to the given problem
of generic type variable Id
.
A template of error message with the replaceable {problem}
, {fix}
and optional {id}
tags. By default, the value is equal to the static property template
.
Example usage
Last updated