RecoveryServiceError
public enum RecoveryServiceError : Error, Sendable
Errors that can occur when interacting with a SEP-30 account recovery service.
-
The request is invalid. Returned when request parameters are malformed or missing required fields.
Declaration
Swift
case badRequest(message: String) -
Authentication failed. Returned when the JWT token is missing, invalid, or does not grant access to the requested resource.
Declaration
Swift
case unauthorized(message: String) -
The requested resource was not found. Returned when the account does not exist or the authenticated user lacks permission to access it.
Declaration
Swift
case notFound(message: String) -
Resource conflict. Returned when attempting to register an account that is already registered.
Declaration
Swift
case conflict(message: String) -
Failed to parse the server response. Returned when the response data cannot be decoded into the expected structure.
Declaration
Swift
case parsingResponseFailed(message: String) -
An error occurred at the Horizon level. Wraps underlying Horizon API errors.
Declaration
Swift
case horizonError(error: HorizonRequestError)
View on GitHub
Install in Dash