corda / net.corda.core.flows / NotaryException

NotaryException

class NotaryException : FlowException

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.

Constructors

<init>

NotaryException(error: NotaryError, txId: SecureHash? = null)

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.

Properties

error

val error: NotaryError

Cause of notarisation failure.

txId

val txId: SecureHash?

Id of the transaction to be notarised. Can be null if an error occurred before the id could be resolved.

Inherited Properties

originalErrorId

var originalErrorId: Long?

the ID backing getErrorId. If null it will be set dynamically by the flow framework when the exception is handled. This ID is propagated to counterparty flows, even when the FlowException is downgraded to an UnexpectedFlowEndException. This is so the error conditions may be correlated later on.

Inherited Functions

getErrorId

open fun getErrorId(): Long?

Extension Functions

contextLogger

fun Any.contextLogger(): <ERROR CLASS>

When called from a companion object, returns the logger for the enclosing class.