corda / net.corda.core.contracts / TransactionVerificationException / TransactionContractConflictException

TransactionContractConflictException

class TransactionContractConflictException : TransactionVerificationException

If a state is identified as belonging to a contract, either because the state class is defined as an inner class of the contract class or because the state class is annotated with BelongsToContract, then it must not be bundled in a TransactionState with a different contract.

Parameters

state - The TransactionState whose bundled state and contract are in conflict.

requiredContractClassName - The class name of the contract to which the state belongs.

Constructors

<init>

TransactionContractConflictException(txId: SecureHash, state: TransactionState<ContractState>, requiredContractClassName: String)

If a state is identified as belonging to a contract, either because the state class is defined as an inner class of the contract class or because the state class is annotated with BelongsToContract, then it must not be bundled in a TransactionState with a different contract.

TransactionContractConflictException(txId: SecureHash, message: String)