java.lang.Object
java.lang.Throwable
java.lang.Exception
com.hedera.hashgraph.sdk.ReceiptStatusException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HederaReceiptStatusException
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 Summary
FieldsModifier and TypeFieldDescriptionfinal TransactionReceiptThe receipt of the transaction that failed; the only initialized field isTransactionReceipt.status.final TransactionIdThe ID of the transaction that failed, in case that context is no longer available (e.g. -
Constructor Summary
ConstructorsConstructorDescriptionReceiptStatusException(TransactionId transactionId, TransactionReceipt receipt) Constructor. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
transactionId
The ID of the transaction that failed, in case that context is no longer available (e.g. the exception was bubbled up). -
receipt
The receipt of the transaction that failed; the only initialized field isTransactionReceipt.status.
-
-
Constructor Details
-
ReceiptStatusException
ReceiptStatusException(@Nullable TransactionId transactionId, TransactionReceipt receipt) Constructor.- Parameters:
transactionId- the transaction idreceipt- the receipt
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-