mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-11-22 23:22:05 +01:00
Add new Exceptions
This commit is contained in:
parent
f5e34bce6c
commit
6d28a7b07d
1 changed files with 32 additions and 0 deletions
|
@ -378,4 +378,36 @@ public abstract class SOPGPException extends RuntimeException {
|
||||||
return EXIT_CODE;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue