ValidationException constructor

ValidationException(
  1. String message, {
  2. Iterable<String> errors = const [],
})

Implementation

ValidationException(this.message, {Iterable<String> errors = const []})
    : super(FormatException(message),
          statusCode: 400,
          errors: (errors).toSet().toList(),
          stackTrace: StackTrace.current) {
  this.errors.addAll(errors.toSet());
}