Skip to content

Commit

Permalink
!403 exception工具类优化
Browse files Browse the repository at this point in the history
Merge pull request !403 from 赵龙波/v5-dev
  • Loading branch information
looly authored and gitee-org committed Aug 26, 2021
2 parents 8adf96e + 40a6ffb commit c0510a4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ public DependencyException(String message, Throwable throwable) {
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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ public NotInitedException(String message, Throwable throwable) {
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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public StatefulException(String msg, Throwable throwable) {
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ public UtilException(String message, Throwable throwable) {
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);
}
Expand Down

0 comments on commit c0510a4

Please sign in to comment.