Sep08Exception

open class Sep08Exception(message: String, cause: Throwable? = null) : Exception

Base exception class for SEP-8 Regulated Assets errors.

All SEP-8-specific exceptions extend this class to enable unified error handling while providing specific error types for different failure scenarios.

This exception hierarchy allows applications to handle regulated asset errors at different levels:

  • Catch Sep08Exception for general SEP-8 error handling

  • Catch specific subclasses for precise error recovery

Common error scenarios:

Example - General error handling:

try {
val response = sep08Service.postTransaction(tx)
} catch (e: Sep08InvalidTransactionResponseException) {
println("Invalid response from approval server: ${e.message}")
} catch (e: Sep08Exception) {
println("SEP-8 error: ${e.message}")
}

See also:

Inheritors

Constructors

Link copied to clipboard
constructor(message: String, cause: Throwable? = null)

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