Sep08IncompleteInitDataException

Exception thrown when required initialization data is missing for the SEP-8 service.

Indicates that the network passphrase or Horizon server URL could not be determined during service initialization. This typically occurs when:

  • The stellar.toml file does not contain a NETWORK_PASSPHRASE entry

  • The stellar.toml file does not contain a HORIZON_URL entry

  • The stellar.toml file cannot be resolved from the asset issuer's domain

Recovery actions:

  • Verify the issuer's stellar.toml contains NETWORK_PASSPHRASE and HORIZON_URL

  • Provide the network passphrase and Horizon URL explicitly during initialization

  • Ensure the issuer's home domain is correctly configured

Example - Handle missing init data:

try {
val service = Sep08Service.forDomain("example.com")
} catch (e: Sep08IncompleteInitDataException) {
println("Missing configuration: ${e.message}")
// Fall back to explicit configuration
}

See also:

Parameters

message

Detailed error message describing the missing initialization data

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