mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 11:00:38 +00:00
Add CommandException to abstract cli return codes for errors
This commit is contained in:
parent
c6395b9f35
commit
221d937eec
47 changed files with 538 additions and 572 deletions
|
@ -0,0 +1,8 @@
|
|||
package org.asamk.signal.commands.exceptions;
|
||||
|
||||
public class CommandException extends Exception {
|
||||
|
||||
public CommandException(final String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
package org.asamk.signal.commands.exceptions;
|
||||
|
||||
public final class IOErrorException extends CommandException {
|
||||
|
||||
public IOErrorException(final String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
package org.asamk.signal.commands.exceptions;
|
||||
|
||||
public final class UnexpectedErrorException extends CommandException {
|
||||
|
||||
public UnexpectedErrorException(final String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
package org.asamk.signal.commands.exceptions;
|
||||
|
||||
public final class UntrustedKeyErrorException extends CommandException {
|
||||
|
||||
public UntrustedKeyErrorException(final String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
package org.asamk.signal.commands.exceptions;
|
||||
|
||||
public final class UserErrorException extends CommandException {
|
||||
|
||||
public UserErrorException(final String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue