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

net.corda.core.contracts

## Class TransactionVerificationException.InvalidConstraintRejection

- Enclosing class:
    TransactionVerificationException

      public static class TransactionVerificationException.InvalidConstraintRejection

  A constraint attached to a state was invalid, e.g. due to size limitations.

- - ### Constructor Detail

    - #### InvalidConstraintRejection

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

      A constraint attached to a state was invalid, e.g. due to size limitations.

      Parameters:
        `contractClass` - The fully qualified class name of the failing contract.
        `reason` - a message containing the reason the constraint is invalid included in thrown the exception.

  - ### Method Detail

    - #### getContractClass

          @NotNull
          public java.lang.String getContractClass()

      The fully qualified class name of the failing contract.

    - #### getReason

          @NotNull
          public java.lang.String getReason()

      a message containing the reason the constraint is invalid included in thrown the exception.