Package org.onyx.exception
Class APIException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.onyx.exception.ChainException
org.onyx.exception.APIException
- All Implemented Interfaces:
Serializable
APIException is thrown when the ledger API encounters an error handling a
user request. Errors could be due to user error, or due to server issues.
Each error contains a brief description in addition to an error code. The error code can be used by technical support to diagnose the exact cause of the error.
Each error contains a brief description in addition to an error code. The error code can be used by technical support to diagnose the exact cause of the error.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAdditional specifics about the error, including any nested sub-errors related to individual actions. -
Field Summary
FieldsModifier and TypeFieldDescriptionMessage describing the general nature of the error.Additional specifics about the error, such as which action failed in a transaction, or for what reason (possibly null).Additional message about the error (possibly null).Unique identifier of the request to the server.booleanSpecifies whether the error is considered to be transient and that the request should be retried.An error code of the format "SEQXXX".intHTTP status code returned by the server. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
seqCode
An error code of the format "SEQXXX". -
chainMessage
Message describing the general nature of the error. -
detail
Additional message about the error (possibly null). -
data
Additional specifics about the error, such as which action failed in a transaction, or for what reason (possibly null). -
retriable
@Expose public boolean retriableSpecifies whether the error is considered to be transient and that the request should be retried. -
requestId
Unique identifier of the request to the server. -
statusCode
@Expose public int statusCodeHTTP status code returned by the server.
-
-
Constructor Details
-
APIException
public APIException()
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-