corda / net.corda.core.contracts / TransactionResolutionException

TransactionResolutionException

open class TransactionResolutionException : FlowException

The node asked a remote peer for the transaction identified by hash because it is a dependency of a transaction being resolved, but the remote peer would not provide it.

Exceptions

UnknownParametersException

class UnknownParametersException : TransactionResolutionException

Thrown if a transaction specifies a set of parameters that aren't stored locally yet verification is requested. This should never normally happen because before verification comes resolution, and if a peer can't provide a new set of parameters, TransactionResolutionException will have already been thrown beforehand.

Constructors

<init>

TransactionResolutionException(hash: SecureHash, message: String = "Transaction resolution failure for $hash")

The node asked a remote peer for the transaction identified by hash because it is a dependency of a transaction being resolved, but the remote peer would not provide it.

Properties

hash

val hash: SecureHash

Merkle root of the transaction being resolved, see net.corda.core.transactions.WireTransaction.id

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.

Inheritors

UnknownParametersException

class UnknownParametersException : TransactionResolutionException

Thrown if a transaction specifies a set of parameters that aren't stored locally yet verification is requested. This should never normally happen because before verification comes resolution, and if a peer can't provide a new set of parameters, TransactionResolutionException will have already been thrown beforehand.