Class TransactionException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CommitStatusException, EndorseException, SubmitException

public class TransactionException extends GatewayException
Thrown when a failure occurs invoking a transaction.
See Also:
  • Constructor Details

    • TransactionException

      public TransactionException(String transactionId, StatusRuntimeException cause)
      Constructs a new exception with the specified cause.
      Parameters:
      transactionId - a transaction ID.
      cause - the cause.
  • Method Details

    • getTransactionId

      public String getTransactionId()
      The ID of the transaction.
      Returns:
      a transaction ID.