Package org.hyperledger.fabric.client
Class CommitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.hyperledger.fabric.client.CommitException
- All Implemented Interfaces:
Serializable
Thrown when a transaction fails to commit successfully.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.hyperledger.fabric.protos.peer.TxValidationCode
getCode()
Get the transaction status code.Get the ID of the transaction.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getTransactionId
Get the ID of the transaction.- Returns:
- transaction ID.
-
getCode
public org.hyperledger.fabric.protos.peer.TxValidationCode getCode()Get the transaction status code.- Returns:
- transaction status code.
-