Package org.hyperledger.fabric.client
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
ConstructorDescriptionTransactionException
(String transactionId, StatusRuntimeException cause) Constructs a new exception with the specified cause. -
Method Summary
Methods inherited from class org.hyperledger.fabric.client.GatewayException
getDetails, getStatus, printStackTrace, printStackTrace, printStackTrace
Methods inherited from class java.lang.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.- Returns:
- a transaction ID.
-