A collection of validation failures.
Creates a new instance.
the validation failures
TypeError if failures is undefined or null
failures
undefined
null
Static
Readonly
A collection that does not contain any failures.
Adds validation failures into this collection.
the failures to add
this
Returns the error for the validation failures, if any.
the error or null if no validation has failed
Returns the list of failed validations.
an unmodifiable list of failed validations
Returns the validation failure messages.
an empty list if the validation was successful
Checks if any validation has failed.
false if at least one validation has failed
false
Throws an error if a validation failed; otherwise, returns true.
true
true if the validation passed
RangeError if a method precondition was violated
AssertionError if a class invariant or method postcondition was violated
MultipleFailuresError if more than one validation failed. This error contains a list of the failures
A collection of validation failures.