OidcError
public enum OidcError : LocalizedError, Sendable
Enum for OIDC errors.
-
An error that occurs during the authorization process.
Declaration
Swift
case authorizeError(cause: Error? = nil, message: String? = nil)
Parameters
cause
The underlying error that caused the issue (optional).
message
A descriptive message about the error (optional).
-
An error that occurs during network communication.
Declaration
Swift
case networkError(cause: Error? = nil, message: String? = nil)
Parameters
cause
The underlying error that caused the issue (optional).
message
A descriptive message about the error (optional).
-
An error returned from the API.
Declaration
Swift
case apiError(code: Int, message: String)
Parameters
code
The HTTP status code of the error.
message
A descriptive message about the error.
-
An unknown or unspecified error.
Declaration
Swift
case unknown(cause: Error? = nil, message: String? = nil)
Parameters
cause
The underlying error that caused the issue (optional).
message
A descriptive message about the error (optional).
-
Provides a human-readable description of the error.
Declaration
Swift
public var errorMessage: String { get }
Return Value
A
String
representing the error message.