mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add constructor
This commit is contained in:
@@ -11,7 +11,7 @@ import cn.hutool.core.util.StrUtil;
|
||||
*/
|
||||
public class JSONException extends RuntimeException {
|
||||
private static final long serialVersionUID = 0;
|
||||
|
||||
|
||||
public JSONException(Throwable e) {
|
||||
super(ExceptionUtil.getMessage(e), e);
|
||||
}
|
||||
@@ -19,7 +19,7 @@ public class JSONException extends RuntimeException {
|
||||
public JSONException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
|
||||
public JSONException(String messageTemplate, Object... params) {
|
||||
super(StrUtil.format(messageTemplate, params));
|
||||
}
|
||||
@@ -28,6 +28,10 @@ public class JSONException extends RuntimeException {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public JSONException(String message, Throwable throwable, boolean enableSuppression, boolean writableStackTrace) {
|
||||
super(message, throwable, enableSuppression, writableStackTrace);
|
||||
}
|
||||
|
||||
public JSONException(Throwable throwable, String messageTemplate, Object... params) {
|
||||
super(StrUtil.format(messageTemplate, params), throwable);
|
||||
}
|
||||
|
Reference in New Issue
Block a user