APIError constructor

APIError({
  1. required int statusCode,
  2. required int code,
  3. List<int> details = const [],
  4. required String duration,
  5. Map<String, String> exceptionFields = const {},
  6. required String message,
  7. required String moreInfo,
  8. bool? unrecoverable,
})

Returns a new APIError instance.

Implementation

APIError({
  required this.statusCode,
  required this.code,
  this.details = const [],
  required this.duration,
  this.exceptionFields = const {},
  required this.message,
  required this.moreInfo,
  this.unrecoverable,
});