public static class TransactionVerificationException.PackageOwnershipException
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.Companion.getZeroHash
because package ownership is an error with a particular attachment,
and because attachment classloaders are reused this is independent of any particular transaction.
SecureHash.Companion.getZeroHash
Constructor and Description |
---|
PackageOwnershipException(SecureHash txId,
SecureHash attachmentHash,
java.lang.String invalidClassName,
java.lang.String packageName)
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.Companion.getZeroHash because package ownership is an error with a particular attachment,
and because attachment classloaders are reused this is independent of any particular transaction. |
Modifier and Type | Method and Description |
---|---|
SecureHash |
getAttachmentHash() |
java.lang.String |
getInvalidClassName() |
java.lang.String |
getPackageName() |
public PackageOwnershipException(SecureHash txId, SecureHash attachmentHash, java.lang.String invalidClassName, java.lang.String packageName)
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.Companion.getZeroHash
because package ownership is an error with a particular attachment,
and because attachment classloaders are reused this is independent of any particular transaction.
SecureHash.Companion.getZeroHash
public SecureHash getAttachmentHash()
public java.lang.String getInvalidClassName()
public java.lang.String getPackageName()