Skip navigation links

Package org.stellar.sdk.exception

Exceptions that can be thrown by the Stellar SDK.

See: Description

Package org.stellar.sdk.exception Description

Exceptions that can be thrown by the Stellar SDK.

The base exception class is SdkException, which extends RuntimeException. All custom exceptions defined in the SDK extend SdkException. The SDK may also throw standard Java runtime exceptions such as IllegalArgumentException where appropriate.

The exception hierarchy is as follows:

The Stellar SDK uses unchecked exceptions (extending RuntimeException) for the following reasons:

While the SDK uses unchecked exceptions, developers are still encouraged to catch and handle these exceptions appropriately in their code. The specific exception classes thrown by the SDK provide useful information about the nature of the error that occurred.

See Also:
SdkException, RuntimeException
Skip navigation links