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 ?? <String>[]).toSet().toList(), stackTrace: StackTrace.current) {
  if (errors != null) this.errors.addAll(errors.toSet());
}