RequestError.fromCode constructor

RequestError.fromCode(
  1. String message, {
  2. int? statusCode,
  3. dynamic rawError,
})

Implementation

factory RequestError.fromCode(String message, {int? statusCode, dynamic rawError}) {
  final apiError = ApiError.create(rawError, statusCode: statusCode, message: message);
  return RequestError(apiError);
}