Sep02Exception

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

Base exception class for SEP-2 Federation Protocol errors.

All SEP-2-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 federation errors at different levels:

  • Catch Sep02Exception for general SEP-2 error handling

  • Catch specific subclasses for precise error recovery

Common error scenarios:

Example - General error handling:

try {
val response = federationService.resolveStellarAddress("user*example.com")
} catch (e: Sep02InvalidAddressException) {
println("Invalid address format: ${e.message}")
} catch (e: Sep02Exception) {
println("SEP-2 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