rawValue method

String rawValue(
  1. BuildContext context
)

Implementation

String rawValue(BuildContext context) {
  switch (this) {
    case ErrorType.badRequest:
      return "Bad Request";

    case ErrorType.unauthorized:
      return "Unauthorized";

    case ErrorType.paymentRequired:
      return "Payment Required";

    case ErrorType.loginFailed:
      return "Login Failed";

    case ErrorType.unauthenticated:
      return "Unauthenticated";

    case ErrorType.unknown:
      return "Unknown Error";

    case ErrorType.forbidden:
      return "Forbidden";

    case ErrorType.notFound:
      return "Not Found";

    case ErrorType.methodNotAllowed:
      return "Method Not Allowed";

    case ErrorType.notAcceptable:
      return "Not Acceptable";

    case ErrorType.internalServerError:
      return "Internal Server Error";

    case ErrorType.notImplemented:
      return "Not Implemented";

    case ErrorType.badGateway:
      return "Bad Gateway";
  }
}