AuthorizationError
public enum AuthorizationError : Error
Error for authentication requests.
-
Specifies that the url response from the server does not contain
queryItems.Declaration
Swift
case invalidURLResponse(url: URL)Parameters
urlThe url that does not contain query items.
-
Specifies that the JSON response could not be properly parsed.
Declaration
Swift
case unableToParseJSON(json: String)Parameters
JSONThe JSON that could not be parsed.
-
Specifies that an unknown error has occured.
Declaration
Swift
case unknownError(Error)Parameters
Errorthe error that was thrown.
-
Specifies that the parameters included in the url request are not properly defined.
Declaration
Swift
case invalidQueryParameters(desc: String)Parameters
descDescription of what parameters must be defined.
-
Specifies that the authorization url is invalid.
Declaration
Swift
case invalidAuthURL(desc: String, url: String)Parameters
descDescription of what makes a valid authorization url.
urlThe provided, invalid, url.
-
Specifies that the authorization code returned is invalid, or missing.
Declaration
Swift
case noCode(desc: String)Parameters
descDescription of the missing code.
AuthorizationError Enumeration Reference