TransactionVerificationException
Keywords: net.corda.core.contracts.TransactionVerificationException class
Date: 2023-09-18

net.corda.core.contracts

## Class TransactionVerificationException

-     public class TransactionVerificationException

  Indicates that some aspect of the transaction named by txId violates the platform rules. The exact type of failure is expressed using a subclass. TransactionVerificationException is a `exception FlowException` and thus when thrown inside a flow, the details of the failure will be serialised, propagated to the peer and rethrown.

  See Also:
    `exception FlowException`

- - ### Constructor Detail

    - #### TransactionVerificationException

          public TransactionVerificationException(@NotNull
                                                  SecureHash txId,
                                                  @NotNull
                                                  java.lang.String message,
                                                  @Nullable
                                                  java.lang.Throwable cause)

      Indicates that some aspect of the transaction named by txId violates the platform rules. The exact type of failure is expressed using a subclass. TransactionVerificationException is a `exception FlowException` and thus when thrown inside a flow, the details of the failure will be serialised, propagated to the peer and rethrown.

      Parameters:
        `txId` - the Merkle root hash (identifier) of the transaction that failed verification.
      See Also:
        `exception FlowException`

  - ### Method Detail

    - #### getTxId

          @NotNull
          public SecureHash getTxId()

      the Merkle root hash

      (identifier) of the transaction that failed verification.