add Logger to print UpdateException-stacktrace on console

This commit is contained in:
Eduard Heimbuch
2019-07-02 11:57:28 +02:00
parent cedf5019b0
commit c805e477cb

View File

@@ -1,11 +1,17 @@
package sonia.scm.migration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class UpdateException extends RuntimeException {
private static Logger LOG = LoggerFactory.getLogger(UpdateException.class);
public UpdateException(String message) {
super(message);
}
public UpdateException(String message, Throwable cause) {
super(message, cause);
LOG.error(message, cause);
}
}