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

net.corda.core.contracts

## Class AttachmentResolutionException

-     public class AttachmentResolutionException

  The node asked a remote peer for the attachment identified by hash because it is a dependency of a transaction being resolved, but the remote peer would not provide it.

- - ### Constructor Detail

    - #### AttachmentResolutionException

          public AttachmentResolutionException(@NotNull
                                               SecureHash hash)

      The node asked a remote peer for the attachment identified by hash because it is a dependency of a transaction being resolved, but the remote peer would not provide it.

      Parameters:
        `hash` - Hash of the bytes of the attachment, see `Attachment.id`

  - ### Method Detail

    - #### getHash

          @NotNull
          public SecureHash getHash()

      Hash of the bytes of the attachment,

      see `Attachment.id`

      See Also:
        `Attachment.id`