Class TransactionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.hyperledger.fabric.client.GatewayException
org.hyperledger.fabric.client.TransactionException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CommitStatusException, EndorseException, SubmitException
Thrown when a failure occurs invoking a transaction.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionException(String transactionId, StatusRuntimeException cause) Constructs a new exception with the specified cause. -
Method Summary
Modifier and TypeMethodDescriptionThe ID of the transaction associated with this exception.Methods inherited from class GatewayException
getDetails, getStatus, printStackTrace, printStackTrace, printStackTraceMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Constructor Details
-
TransactionException
Constructs a new exception with the specified cause.- Parameters:
transactionId- a transaction ID.cause- the cause.
-
-
Method Details
-
getTransactionId
The ID of the transaction associated with this exception.- Returns:
- a transaction ID.
-