-
-
Save dodikk/4c01c683f96d039e9698673cd161c74f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum APIError : ErrorType { | |
// Can't connect to the server (maybe offline?) | |
case ConnectionError(error: NSError) | |
// The server responded with a non 200 status code | |
case ServerError(statusCode: Int, error: NSError) | |
// We got no data (0 bytes) back from the server | |
case NoDataError | |
// The server response can't be converted from JSON to a Dictionary | |
case JSONSerializationError(error: ErrorType) | |
// The Argo decoding Failed | |
case JSONMappingError(converstionError: DecodeError) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment