eatsmart_dart_client library

Functions

generateEatsmartNetworkError(DioError e) EatsmartNetworkError
generateEatsmartNetworkResponseError(RequestOptions requestOptions, Map<String, dynamic> responseBody) EatsmartNetworkResponseError

Exceptions / Errors

BadRequestError
DioErrorType.response && statusCode == 400
ConflictError
DioErrorType.response && statusCode == 409
EatsmartNetworkError
Network base error
EatsmartNetworkResponseError
InternalServerError
DioErrorType.response && statusCode == 500
NotAcceptableError
DioErrorType.response && statusCode == 406
NotFoundError
DioErrorType.response && statusCode == 404
ReceiveTimeoutError
DioErrorType.receiveTimeout
RequestCancelledError
DioErrorType.cancel
RequestTimeoutError
DioErrorType.connectTimeout || (DioErrorType.response && statusCode == 404)
SendTimeoutError
DioErrorType.sendTimeout
ServiceUnavailableError
DioErrorType.response && statusCode == 503
UnauthorizedError
DioErrorType.response && (statusCode == 401 || statusCode == 403)
UnexpectedError
The others
UnprocessableEntityError
DioErrorType.response && statusCode == 422