Add new Exceptions

This commit is contained in:
Paul Schaub 2023-04-09 19:52:34 +02:00
parent f5e34bce6c
commit 6d28a7b07d
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
1 changed files with 32 additions and 0 deletions

View File

@ -378,4 +378,36 @@ public abstract class SOPGPException extends RuntimeException {
return EXIT_CODE;
}
}
public static class IncompatibleOptions extends SOPGPException {
public static final int EXIT_CODE = 83;
public IncompatibleOptions() {
super();
}
public IncompatibleOptions(String errorMsg) {
super(errorMsg);
}
@Override
public int getExitCode() {
return EXIT_CODE;
}
}
public static class UnsupportedProfile extends SOPGPException {
public static final int EXIT_CODE = 89;
public UnsupportedProfile() {
super();
}
@Override
public int getExitCode() {
return EXIT_CODE;
}
}
}