TransactionVerificationException.PackageOwnershipException
Keywords: net.corda.core.contracts.TransactionVerificationException.PackageOwnershipException class
Date: 2023-09-18

net.corda.core.contracts

## Class TransactionVerificationException.PackageOwnershipException

- Enclosing class:
    TransactionVerificationException

      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.zeroHash because package ownership is an error with a particular attachment, and because attachment classloaders are reused this is independent of any particular transaction.

- - ### Constructor Detail

    - #### PackageOwnershipException

          public PackageOwnershipException(@NotNull
                                           SecureHash txId,
                                           @NotNull
                                           SecureHash attachmentHash,
                                           @NotNull
                                           java.lang.String invalidClassName,
                                           @NotNull
                                           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.zeroHash because package ownership is an error with a particular attachment, and because attachment classloaders are reused this is independent of any particular transaction.

  - ### Method Detail

    - #### getAttachmentHash

          @NotNull
          public SecureHash getAttachmentHash()

    - #### getInvalidClassName

          @NotNull
          public java.lang.String getInvalidClassName()

    - #### getPackageName

          @NotNull
          public java.lang.String getPackageName()