Print stack trace of exception causes in verbose mode

This commit is contained in:
AsamK 2021-09-08 20:38:24 +02:00
parent e3c37a0239
commit 2044a7d7a5
32 changed files with 66 additions and 60 deletions

View file

@ -5,4 +5,8 @@ public class CommandException extends Exception {
public CommandException(final String message) {
super(message);
}
public CommandException(final String message, final Throwable cause) {
super(message, cause);
}
}

View file

@ -1,8 +1,10 @@
package org.asamk.signal.commands.exceptions;
import java.io.IOException;
public final class IOErrorException extends CommandException {
public IOErrorException(final String message) {
super(message);
public IOErrorException(final String message, IOException cause) {
super(message, cause);
}
}

View file

@ -2,7 +2,7 @@ package org.asamk.signal.commands.exceptions;
public final class UnexpectedErrorException extends CommandException {
public UnexpectedErrorException(final String message) {
super(message);
public UnexpectedErrorException(final String message, final Throwable cause) {
super(message, cause);
}
}