Sep30Bad Request Exception
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}")
}Content copied to clipboard
See also:
Sep30Exception base class
Parameters
message
Detailed error message from the recovery server