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

net.corda.core.contracts

## Class TransactionVerificationException.NotaryChangeInWrongTransactionType

- Enclosing class:
    TransactionVerificationException

      public static class TransactionVerificationException.NotaryChangeInWrongTransactionType

  An output state has a notary that doesn't match the transaction's notary field. It must!

- - ### Constructor Detail

    - #### NotaryChangeInWrongTransactionType

          public NotaryChangeInWrongTransactionType(@NotNull
                                                    SecureHash txId,
                                                    @NotNull
                                                    Party txNotary,
                                                    @NotNull
                                                    Party outputNotary)

      An output state has a notary that doesn't match the transaction's notary field. It must!

      Parameters:
        `txNotary` - the `class Party` specified by the transaction header.
        `outputNotary` - the `class Party` specified by the errant state.

  - ### Method Detail

    - #### getTxNotary

          @NotNull
          public Party getTxNotary()

      the

      `class Party` specified by the transaction header.

      See Also:
        `class Party`

    - #### getOutputNotary

          @NotNull
          public Party getOutputNotary()

      the

      `class Party` specified by the errant state.

      See Also:
        `class Party`