public class TransactionExecutionException extends Exception
The other attributes of a Java exception — a stack trace, a cause, suppressed exceptions — are not saved in the database and are used for logging only.
An external client will get the error code and description when requests a transaction status of a failed transaction. See the API endpoint documentation for more information.
TransactionResult,
Serialized Form| Constructor and Description |
|---|
TransactionExecutionException(byte errorCode)
Constructs a new transaction exception with no description.
|
TransactionExecutionException(byte errorCode,
String description)
Constructs a new transaction exception with the specified description.
|
TransactionExecutionException(byte errorCode,
String description,
Throwable cause)
Constructs a new transaction exception with the specified description and cause.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getErrorCode()
Returns the transaction error code.
|
String |
toString()
Returns a string representation of this error.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic TransactionExecutionException(byte errorCode)
errorCode - the transaction error codepublic TransactionExecutionException(byte errorCode,
@Nullable
String description)
errorCode - the transaction error codedescription - the error description. The detail description is saved for
later retrieval by the Throwable.getMessage() method.public TransactionExecutionException(byte errorCode,
@Nullable
String description,
@Nullable
Throwable cause)
Note that the detail message associated with cause is not automatically
incorporated in this exception’s detail message.
errorCode - the transaction error codedescription - the error description. The detail description is saved for
later retrieval by the Throwable.getMessage() method.cause - the cause (which is saved for later retrieval by the Throwable.getCause() method).
A null value is permitted, and indicates that the cause is nonexistent or unknown.Copyright © 2019 Exonum. All rights reserved.