java.lang.Object
java.lang.Throwable
java.lang.Exception
com.hedera.hashgraph.sdk.PrecheckStatusException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HederaPreCheckStatusException
Signals that a transaction has failed the pre-check.
Before a node submits a transaction to the rest of the network, it attempts some cheap assertions. This process is called the "pre-check".
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StatusThe status of the failing transactionfinal TransactionIdThe ID of the transaction that failed. -
Constructor Summary
ConstructorsConstructorDescriptionPrecheckStatusException(Status status, TransactionId transactionId) Constructor. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
status
The status of the failing transaction -
transactionId
The ID of the transaction that failed.This can be `null` if a query fails pre-check without an associated payment transaction.
-
-
Constructor Details
-
PrecheckStatusException
PrecheckStatusException(Status status, @Nullable TransactionId transactionId) Constructor.- Parameters:
status- the statustransactionId- the transaction id
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-