static define()
Defines the `ValidationError` instance
Last updated
Was this helpful?
Defines the `ValidationError` instance
Last updated
Was this helpful?
ValidationError.define()
Defines the ValidationError
instance with the message built of the given required problem
, fix
and optional id
on the supplied or stored template
.
A generic type variable constrained by the string
, by default of the value captured from the provided optional id
indicates the type of a new ValidationError
instance.
Description of the of a string
type.
A solution to the given problem
of a string
type.
template =
ValidationError
.template
The return type is the ValidationError
object that takes generic type variable Id
.
The return value is a new instance of the ValidationError
with the message built from the given required problem
, fix
and optional id
on the given or stored template
.
A template of error message with the replaceable , and optional tags. By default, the value is equal to the static property ValidationError.template
.