ManagementError

public struct ManagementError : Auth0APIError
extension ManagementError: Equatable

Represents an error during a request to the Auth0 Management API v2.

  • Additional information about the error.

    Declaration

    Swift

    public let info: [String : Any]
  • Creates an error from a JSON response.

    Declaration

    Swift

    public init(info: [String : Any], statusCode: Int)

    Parameters

    info

    JSON response from Auth0.

    statusCode

    HTTP status code of the response.

    Return Value

    A new ManagementError.

  • HTTP status code of the response.

    Declaration

    Swift

    public let statusCode: Int
  • The underlying Error value, if any. Defaults to nil.

    Declaration

    Swift

    public var cause: Error? { get }
  • The code of the error as a string.

    Declaration

    Swift

    public var code: String { get }
  • Description of the error.

    Important

    You should avoid displaying the error description to the user, it’s meant for debugging only.

    Declaration

    Swift

    public var debugDescription: String { get }

Equatable

  • Conformance to Equatable.

    Declaration

    Swift

    public static func == (lhs: ManagementError, rhs: ManagementError) -> Bool