NotaryException
Keywords: net.corda.core.flows.NotaryException class
Date: 2023-09-18

net.corda.core.flows

## Class NotaryException

-     public class NotaryException

  Exception thrown by the notary service if any issues are encountered while trying to commit a transaction. The underlying error specifies the cause of failure.

- - ### Constructor Detail

    - #### NotaryException

          public NotaryException(@NotNull
                                 NotaryError error,
                                 @Nullable
                                 SecureHash txId)

      Exception thrown by the notary service if any issues are encountered while trying to commit a transaction. The underlying error specifies the cause of failure.

      Parameters:
        `error` - Cause of notarisation failure.
        `txId` - Id of the transaction to be notarised. Can be null if an error occurred before the id could be resolved.

  - ### Method Detail

    - #### getError

          @NotNull
          public NotaryError getError()

      Cause of notarisation failure.

    - #### getTxId

          @Nullable
          public SecureHash getTxId()

      Id of the transaction to be notarised.

      Can be null if an error occurred before the id could be resolved.