public static class TransactionVerificationException.TransactionMissingEncumbranceException
If a state is encumbered (the TransactionState.encumbrance field is set) then its encumbrance must be used as an input to any transaction that uses it. In this way states can be tied together in chains, thus composing logic. Note that encumbrances aren't fully supported by all aspects of the platform at this time so if you use them, you may find transactions created by the platform don't always respect the encumbrance rule.
Constructor and Description |
---|
TransactionMissingEncumbranceException(SecureHash txId,
int missing,
TransactionVerificationException.Direction inOut)
If a state is encumbered (the TransactionState.encumbrance field is set) then its encumbrance must be used
as an input to any transaction that uses it. In this way states can be tied together in chains, thus composing
logic. Note that encumbrances aren't fully supported by all aspects of the platform at this time so if you use
them, you may find transactions created by the platform don't always respect the encumbrance rule.
|
Modifier and Type | Method and Description |
---|---|
TransactionVerificationException.Direction |
getInOut()
whether the issue exists in the input list or output list.
|
int |
getMissing()
the index of the state missing the encumbrance.
|
public TransactionMissingEncumbranceException(SecureHash txId, int missing, TransactionVerificationException.Direction inOut)
If a state is encumbered (the TransactionState.encumbrance field is set) then its encumbrance must be used as an input to any transaction that uses it. In this way states can be tied together in chains, thus composing logic. Note that encumbrances aren't fully supported by all aspects of the platform at this time so if you use them, you may find transactions created by the platform don't always respect the encumbrance rule.
missing
- the index of the state missing the encumbrance.inOut
- whether the issue exists in the input list or output list.public int getMissing()
the index of the state missing the encumbrance.
public TransactionVerificationException.Direction getInOut()
whether the issue exists in the input list or output list.