corda / net.corda.core.contracts / InsufficientBalanceException

InsufficientBalanceException

class InsufficientBalanceException : FlowException

Thrown if a request is made to spend an amount of a FungibleAsset but there aren't enough tokens in the vault.

Constructors

<init>

InsufficientBalanceException(amountMissing: Amount<*>)

Thrown if a request is made to spend an amount of a FungibleAsset but there aren't enough tokens in the vault.

Properties

amountMissing

val amountMissing: Amount<*>

An Amount that specifies how many tokens were missing.

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.