ValidationException constructor

const ValidationException({
  1. required String message,
  2. StackTrace? stackTrace,
  3. dynamic errors,
})

Exception thrown when API returns a 422 response.

Implementation

const ValidationException({
  required super.message,
  super.stackTrace,
  this.errors,
}) : super(code: 422);