001// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org>
002//
003// SPDX-License-Identifier: Apache-2.0
004
005package org.pgpainless.exception;
006
007import org.bouncycastle.openpgp.PGPException;
008
009/**
010 * Exception that is thrown when decryption fails due to a missing decryption key or decryption passphrase.
011 * This can happen when the user does not provide the right set of keys / the right password when decrypting
012 * a message.
013 */
014public class MissingDecryptionMethodException extends PGPException {
015
016    public MissingDecryptionMethodException(String message) {
017        super(message);
018    }
019}