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

net.corda.core.contracts

## Class TransactionVerificationException.ContractConstraintRejection

- Enclosing class:
    TransactionVerificationException

      public static class TransactionVerificationException.ContractConstraintRejection

  The transaction attachment that contains the contractClass class didn't meet the constraints specified by the TransactionState.constraint object. This usually implies a version mismatch of some kind.

- - ### Constructor Detail

    - #### ContractConstraintRejection

          public ContractConstraintRejection(@NotNull
                                             SecureHash txId,
                                             @NotNull
                                             java.lang.String contractClass)

      The transaction attachment that contains the contractClass class didn't meet the constraints specified by the TransactionState.constraint object. This usually implies a version mismatch of some kind.

      Parameters:
        `contractClass` - The fully qualified class name of the failing contract.

  - ### Method Detail

    - #### getContractClass

          @NotNull
          public java.lang.String getContractClass()

      The fully qualified class name of the failing contract.