mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2025-09-09 10:19:47 +02:00
Wip: working extract-cert, fix generate-key parameter passing
This commit is contained in:
parent
e602cc16cc
commit
efec4d9110
12 changed files with 430 additions and 122 deletions
|
@ -32,7 +32,11 @@ public abstract class SOPGPException extends RuntimeException {
|
|||
public static final int EXIT_CODE = 3;
|
||||
|
||||
public NoSignature() {
|
||||
super("No verifiable signature found.");
|
||||
this("No verifiable signature found.");
|
||||
}
|
||||
|
||||
public NoSignature(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public NoSignature(String errorMsg, NoSignature e) {
|
||||
|
@ -72,6 +76,10 @@ public abstract class SOPGPException extends RuntimeException {
|
|||
super(message, cause);
|
||||
}
|
||||
|
||||
public CertCannotEncrypt(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getExitCode() {
|
||||
return EXIT_CODE;
|
||||
|
@ -85,8 +93,8 @@ public abstract class SOPGPException extends RuntimeException {
|
|||
|
||||
public static final int EXIT_CODE = 19;
|
||||
|
||||
public MissingArg(String s) {
|
||||
super(s);
|
||||
public MissingArg(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -127,6 +135,10 @@ public abstract class SOPGPException extends RuntimeException {
|
|||
super(errorMsg, e);
|
||||
}
|
||||
|
||||
public CannotDecrypt(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getExitCode() {
|
||||
return EXIT_CODE;
|
||||
|
@ -144,6 +156,10 @@ public abstract class SOPGPException extends RuntimeException {
|
|||
super();
|
||||
}
|
||||
|
||||
public PasswordNotHumanReadable(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getExitCode() {
|
||||
return EXIT_CODE;
|
||||
|
@ -203,6 +219,10 @@ public abstract class SOPGPException extends RuntimeException {
|
|||
|
||||
public static final int EXIT_CODE = 53;
|
||||
|
||||
public ExpectedText(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getExitCode() {
|
||||
return EXIT_CODE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue