Commit aa33b88c authored by Zandor Smith's avatar Zandor Smith 💻

Add more api call errors.

parent 8a47386b
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
......@@ -8,6 +8,7 @@
import Foundation
public enum APICallError {
// Network related errors
case noInternet
case serverUnavailable
......@@ -19,11 +20,16 @@ public enum APICallError {
// API related errors
case receivedException
case invalidParameters
case missingParameters
case postContentInvalid
case sessionExpired
case loginExpired
case invalidCredentials
case accountInactive
case emailInUse // Registration
case passwordsNotMatching // Registration
case unexpectedResponse
case unknown
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment