Creates a new configuration that:
true
if error messages may include a diff that compares actual and expected values
the configuration used to map contextual values to a string
true
if the error stack trace must be recorded when a validation failure
occurs. If false
, the error type remains the same, but the stack trace points to the invocation
of elseGetError()
. Users who only plan to
list of failure messages instead of retrieving an error
may see a performance improvement if this value is set to false
.
true
if an error is thrown on validation failure
a function that transforms the validation error before it is thrown or returned
Returns true
if error messages may include a diff that compares actual and expected values.
true
by default
Returns true
if the error stack trace must be recorded when a validation failure occurs. If false
,
the error type remains the same, but the stack trace points to the invocation of
elseGetError()
. Users who only plan to
list of failure messages instead of retrieving an error
may see a performance improvement if this value is set to false
.
true
if error stack traces must be recorded when a validation failure occurs
Returns the configuration used to map contextual values to a String. Supports common types such as arrays, numbers, collections, maps, paths and errors.
a function that takes an object and returns the string
representation of the object
Returns true
if an error is thrown on validation failure.
true
if an error is thrown on validation failure
Determines the behavior of a validator.