Properly throw CannotDecrypt exception with error message

This commit is contained in:
Paul Schaub 2022-11-06 14:41:37 +01:00
parent e75dde1637
commit c32ef9830b
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
4 changed files with 13 additions and 0 deletions

View file

@ -119,6 +119,14 @@ public abstract class SOPGPException extends RuntimeException {
public static final int EXIT_CODE = 29;
public CannotDecrypt() {
}
public CannotDecrypt(String errorMsg, Throwable e) {
super(errorMsg, e);
}
@Override
public int getExitCode() {
return EXIT_CODE;