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

@@ -27,8 +27,8 @@ 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(String message, Throwable throwable, boolean enableSuppression, boolean writableStackTrace) {
super(message, throwable, enableSuppression, writableStackTrace);
}
public DependencyException(Throwable throwable, String messageTemplate, Object... params) {

View File

@@ -26,8 +26,8 @@ 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(String message, Throwable throwable, boolean enableSuppression, boolean writableStackTrace) {
super(message, throwable, enableSuppression, writableStackTrace);
}
public NotInitedException(Throwable throwable, String messageTemplate, Object... params) {

View File

@@ -6,7 +6,6 @@ import cn.hutool.core.util.StrUtil;
* 带有状态码的异常
*
* @author xiaoleilu
*
*/
public class StatefulException extends RuntimeException {
private static final long serialVersionUID = 6057602589533840889L;
@@ -33,8 +32,8 @@ 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(String message, Throwable throwable, boolean enableSuppression, boolean writableStackTrace) {
super(message, throwable, enableSuppression, writableStackTrace);
}
public StatefulException(int status, String msg) {

View File

@@ -4,9 +4,10 @@ import cn.hutool.core.util.StrUtil;
/**
* 工具类异常
*
* @author xiaoleilu
*/
public class UtilException extends RuntimeException{
public class UtilException extends RuntimeException {
private static final long serialVersionUID = 8247610319171014183L;
public UtilException(Throwable e) {
@@ -25,8 +26,8 @@ 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(String message, Throwable throwable, boolean enableSuppression, boolean writableStackTrace) {
super(message, throwable, enableSuppression, writableStackTrace);
}
public UtilException(Throwable throwable, String messageTemplate, Object... params) {