ValidationException constructor

ValidationException(
  1. String message, {
  2. Map<String, dynamic>? errors,
  3. LuckyResponse? response,
})

Creates a ValidationException with the given error message.

Optionally accepts a structured errors map and the original response.

Implementation

ValidationException(
  String message, {
  this.errors,
  LuckyResponse? response,
}) : super(message, statusCode: 422, response: response);