ApiException constructor
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,
});