Auth0APIError
public protocol Auth0APIError : Auth0Error
Generic representation of Auth0 API errors. AuthenticationError
and ManagementError
conform to this protocol.
-
Additional information about the error.
Declaration
Swift
var info: [String : Any] { get }
-
The code of the error as a string.
Declaration
Swift
var code: String { get }
-
HTTP status code of the response.
Declaration
Swift
var statusCode: Int { get }
-
Creates an error from a JSON response.
Declaration
Swift
init(info: [String : Any], statusCode: Int)
Parameters
info
JSON response from Auth0.
statusCode
HTTP status code of the response.
Return Value
A new
Auth0APIError
.