Class CommitException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.hyperledger.fabric.client.CommitException
All Implemented Interfaces:
Serializable

public class CommitException extends Exception
Thrown when a transaction fails to commit successfully.
See Also:
  • Method Details

    • getTransactionId

      public String 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.