ValidationException constructor

const ValidationException({
  1. String? message,
  2. Map<String, dynamic> errors = const <String, dynamic>{},
  3. DioException? originalException,
  4. String? errorCode,
  5. String? traceId,
})

Creates a ValidationException with an optional custom message and field-level errors.

Implementation

const ValidationException({String? message, this.errors = const <String, dynamic>{}, super.originalException, super.errorCode, super.traceId})
  : super(message: message ?? "The information provided was invalid.");