Class ReceiptStatusException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.hedera.hashgraph.sdk.ReceiptStatusException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HederaReceiptStatusException

public class ReceiptStatusException extends Exception
An Exception thrown on error status by TransactionId.getReceipt(Client).

The receipt is included, though only the TransactionReceipt.status field will be initialized; all the getters should throw.

See Also:
  • Field Details

    • transactionId

      @Nullable public final TransactionId transactionId
      The ID of the transaction that failed, in case that context is no longer available (e.g. the exception was bubbled up).
    • receipt

      public final TransactionReceipt receipt
      The receipt of the transaction that failed; the only initialized field is TransactionReceipt.status.
  • Constructor Details

    • ReceiptStatusException

      ReceiptStatusException(@Nullable TransactionId transactionId, TransactionReceipt receipt)
      Constructor.
      Parameters:
      transactionId - the transaction id
      receipt - the receipt
  • Method Details