mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-09 18:29:39 +02:00
KeyRingReader: Remove unused @throws IOException
This commit is contained in:
parent
fb581f11c7
commit
005b9d477a
8 changed files with 14 additions and 25 deletions
|
@ -113,7 +113,7 @@ public class EncryptImpl implements Encrypt {
|
|||
encryptionOptions.addRecipients(certificates);
|
||||
} catch (KeyException.UnacceptableEncryptionKeyException e) {
|
||||
throw new SOPGPException.CertCannotEncrypt(e.getMessage(), e);
|
||||
} catch (IOException | PGPException e) {
|
||||
} catch (IOException e) {
|
||||
throw new SOPGPException.BadData(e);
|
||||
}
|
||||
return this;
|
||||
|
|
|
@ -33,8 +33,6 @@ class KeyReader {
|
|||
throw new SOPGPException.BadData(e);
|
||||
}
|
||||
throw e;
|
||||
} catch (PGPException e) {
|
||||
throw new SOPGPException.BadData("Cannot read keys.", e);
|
||||
}
|
||||
|
||||
if (requireContent && (keys == null || keys.size() == 0)) {
|
||||
|
@ -54,8 +52,6 @@ class KeyReader {
|
|||
throw new SOPGPException.BadData(e);
|
||||
}
|
||||
throw e;
|
||||
} catch (PGPException e) {
|
||||
throw new SOPGPException.BadData(e);
|
||||
}
|
||||
if (requireContent && (certs == null || certs.size() == 0)) {
|
||||
throw new SOPGPException.BadData(new PGPException("No cert data found."));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue