Sep30UnauthorizedException

Exception thrown when the recovery server returns HTTP 401 Unauthorized.

Indicates that the request lacks valid authentication credentials or the provided credentials are insufficient. This typically occurs when:

  • The SEP-10 authentication token is missing

  • The SEP-10 authentication token has expired

  • The authenticated account does not have permission for the requested operation

Recovery actions:

  • Obtain a valid SEP-10 authentication token before retrying

  • Re-authenticate if the token has expired

  • Verify the authenticated account has the required permissions

Example - Handle unauthorized:

try {
val account = sep30Service.registerAccount(address, identities, signers)
} catch (e: Sep30UnauthorizedException) {
println("Authentication required: ${e.message}")
// Re-authenticate via SEP-10 and retry
}

See also:

Parameters

message

Detailed error message from the recovery server

Constructors

Link copied to clipboard
constructor(message: String)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?

Functions

Link copied to clipboard
open override fun toString(): String