ApiException constructor

const ApiException({
  1. required String message,
  2. String? code,
  3. int? statusCode,
})

Creates a new ApiException.

message is required and describes the error. code is an optional error code from the API. statusCode is the HTTP status code, if available.

Implementation

const ApiException({
  required this.message,
  this.code,
  this.statusCode,
});