Class PrecheckStatusException

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

public class PrecheckStatusException extends Exception
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 Details

    • status

      public final Status status
      The status of the failing transaction
    • transactionId

      @Nullable public final TransactionId 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 status
      transactionId - the transaction id
  • Method Details