Sep30BadRequestException

Exception thrown when the recovery server returns HTTP 400 Bad Request.

Indicates that the request was malformed or contained invalid parameters. This typically occurs when:

  • Required request fields are missing

  • Request body JSON is malformed

  • Identity or signer parameters are invalid

  • The Stellar address format is incorrect

Recovery actions:

  • Verify all required request parameters are provided

  • Check that the Stellar account address is valid

  • Ensure identities and signers conform to the SEP-30 specification

Example - Handle bad request:

try {
val account = sep30Service.registerAccount(address, identities, signers)
} catch (e: Sep30BadRequestException) {
println("Invalid request: ${e.message}")
}

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