Package org.stellar.sdk.exception
Class UnexpectedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.stellar.sdk.exception.SdkException
org.stellar.sdk.exception.UnexpectedException
- All Implemented Interfaces:
Serializable
This exception is thrown to indicate that an unexpected condition has occurred which
theoretically should never happen during the normal execution of the program.
Use this exception to signal that the code has reached a state that was not anticipated and should be addressed during development or testing.
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs a new UnexpectedException.UnexpectedException
(String message) Constructs a new UnexpectedException with the specified detail message.UnexpectedException
(String message, Throwable cause) Constructs a new UnexpectedException with the specified detail message and cause.UnexpectedException
(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Constructs a new UnexpectedException with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.UnexpectedException
(Throwable cause) Constructs a new UnexpectedException with the cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnexpectedException
public UnexpectedException()Constructs a new UnexpectedException. -
UnexpectedException
Constructs a new UnexpectedException with the specified detail message.- Parameters:
message
- the detail message, providing additional information about the error.
-
UnexpectedException
Constructs a new UnexpectedException with the specified detail message and cause.- Parameters:
message
- the detail message, providing additional information about the error.cause
- the cause of the exception, which can be retrieved later by theThrowable.getCause()
method.
-
UnexpectedException
Constructs a new UnexpectedException with the cause.- Parameters:
cause
- the cause of the exception, which can be retrieved later by theThrowable.getCause()
method.
-
UnexpectedException
public UnexpectedException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Constructs a new UnexpectedException with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.- Parameters:
message
- the detail message, providing additional information about the error.cause
- the cause of the exception, which can be retrieved later by theThrowable.getCause()
method. Anull
value is permitted, and indicates that the cause is nonexistent or unknown.enableSuppression
- whether suppression is enabled or disabled.writableStackTrace
- whether the stack trace should be writable.
-