add constructor

This commit is contained in:
Looly
2021-08-26 23:40:28 +08:00
parent c0510a4c66
commit d66efef873
24 changed files with 146 additions and 67 deletions

View File

@@ -13,19 +13,23 @@ public class DbRuntimeException extends RuntimeException{
public DbRuntimeException(Throwable e) {
super(ExceptionUtil.getMessage(e), e);
}
public DbRuntimeException(String message) {
super(message);
}
public DbRuntimeException(String messageTemplate, Object... params) {
super(StrUtil.format(messageTemplate, params));
}
public DbRuntimeException(String message, Throwable throwable) {
super(message, throwable);
}
public DbRuntimeException(String message, Throwable throwable, boolean enableSuppression, boolean writableStackTrace) {
super(message, throwable, enableSuppression, writableStackTrace);
}
public DbRuntimeException(Throwable throwable, String messageTemplate, Object... params) {
super(StrUtil.format(messageTemplate, params), throwable);
}