ValidationException constructor
A list of errors that resulted in the given data being marked invalid. A descriptive message describing the error.
Implementation
//@override
//final List<String> errors = [];
/// A descriptive message describing the error.
//@override
//final String message;
ValidationException(String message, {Iterable<String> errors = const []})
: super(
message: message,
statusCode: 400,
errors: (errors).toSet().toList(),
stackTrace: StackTrace.current) {
//this.errors.addAll(errors.toSet());
}