Package-level declarations

Types

Link copied to clipboard
class AccountRequiresMemoException(message: String, val accountId: String, val operationIndex: Int) : SdkException

AccountRequiresMemoException is thrown when a transaction is trying to submit an operation to an account which requires a memo as defined in SEP-0029.

Link copied to clipboard
class BadRequestException(message: String? = null, cause: Throwable? = null, code: Int? = null, body: String? = null) : NetworkException

Exception thrown when the server returns a 4xx client error status code. This indicates that the request was malformed or contained invalid parameters.

Link copied to clipboard
class BadResponseException(message: String? = null, cause: Throwable? = null, code: Int? = null, body: String? = null) : NetworkException

Exception thrown when the server returns a 5xx server error status code. This indicates that the server encountered an error while processing the request.

Link copied to clipboard
class ConnectionErrorException(message: String? = null, cause: Throwable? = null, code: Int? = null, body: String? = null) : NetworkException

Exception thrown when the request cannot be executed due to cancellation or connectivity problems. This typically occurs when there are network connectivity issues, DNS resolution failures, or the connection is unexpectedly closed.

Link copied to clipboard
open class NetworkException(message: String? = null, cause: Throwable? = null, val code: Int? = null, val body: String? = null) : Exception

Represents an exception that occurs during network operations in the Stellar SDK.

Link copied to clipboard
class RequestTimeoutException(message: String? = null, cause: Throwable? = null, code: Int? = null, body: String? = null) : NetworkException

Exception thrown when a request times out. This can occur when Horizon returns a Timeout status or when a connection timeout occurs.

Link copied to clipboard
open class SdkException(message: String? = null, cause: Throwable? = null) : Exception

Base exception class for SDK-specific errors that are not network-related.

Link copied to clipboard
class TooManyRequestsException(message: String? = null, cause: Throwable? = null, code: Int? = null, body: String? = null) : NetworkException

Exception thrown when the server returns a 429 Too Many Requests status code. This indicates that the client has sent too many requests in a given amount of time.

Link copied to clipboard
class UnknownResponseException(message: String? = null, cause: Throwable? = null, code: Int? = null, body: String? = null) : NetworkException

Exception thrown when the server returns an unknown or unexpected status code. This typically occurs when the server returns a status code that is not handled by the SDK.