!403 exception工具类优化

Merge pull request !403 from 赵龙波/v5-dev
This commit is contained in:
Looly 2021-08-26 15:31:11 +00:00 committed by Gitee
commit c0510a4c66
4 changed files with 16 additions and 0 deletions

View File

@ -27,6 +27,10 @@ public class DependencyException extends RuntimeException {
super(message, throwable);
}
public DependencyException( String message, Throwable throwable,boolean enableSuppression,boolean writableStackTrace) {
super(message, throwable,enableSuppression,writableStackTrace);
}
public DependencyException(Throwable throwable, String messageTemplate, Object... params) {
super(StrUtil.format(messageTemplate, params), throwable);
}

View File

@ -26,6 +26,10 @@ public class NotInitedException extends RuntimeException {
super(message, throwable);
}
public NotInitedException( String message, Throwable throwable,boolean enableSuppression,boolean writableStackTrace) {
super(message, throwable,enableSuppression,writableStackTrace);
}
public NotInitedException(Throwable throwable, String messageTemplate, Object... params) {
super(StrUtil.format(messageTemplate, params), throwable);
}

View File

@ -33,6 +33,10 @@ public class StatefulException extends RuntimeException {
super(msg, throwable);
}
public StatefulException( String message, Throwable throwable,boolean enableSuppression,boolean writableStackTrace) {
super(message, throwable,enableSuppression,writableStackTrace);
}
public StatefulException(int status, String msg) {
super(msg);
this.status = status;

View File

@ -25,6 +25,10 @@ public class UtilException extends RuntimeException{
super(message, throwable);
}
public UtilException( String message, Throwable throwable,boolean enableSuppression,boolean writableStackTrace) {
super(message, throwable,enableSuppression,writableStackTrace);
}
public UtilException(Throwable throwable, String messageTemplate, Object... params) {
super(StrUtil.format(messageTemplate, params), throwable);
}