PackageOwnershipException

class PackageOwnershipException(val txId: SecureHash, val attachmentHash: AttachmentId, val invalidClassName: String, val packageName: String) : TransactionVerificationException

Thrown to indicate that a contract attachment is not signed by the network-wide package owner. Please note that the txId will always be SecureHash.zeroHash because package ownership is an error with a particular attachment, and because attachment classloaders are reused this is independent of any particular transaction.

Constructors

Link copied to clipboard
constructor(txId: SecureHash, attachmentHash: AttachmentId, invalidClassName: String, packageName: String)

Properties

Link copied to clipboard
Link copied to clipboard
open override val cause: Throwable?
Link copied to clipboard
Link copied to clipboard
open override val message: String?
Link copied to clipboard

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.

Link copied to clipboard
Link copied to clipboard
open override val originalMessage: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

the Merkle root hash (identifier) of the transaction that failed verification.

Functions

Link copied to clipboard
open override fun addSuppressed(suppressed: Array<Throwable>)
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
Link copied to clipboard
open fun getErrorId(): Long?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun setCause(cause: Throwable?)
Link copied to clipboard
open override fun setMessage(message: String?)
Link copied to clipboard