mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add constructor
This commit is contained in:
@@ -5,7 +5,7 @@ import cn.hutool.core.util.StrUtil;
|
||||
|
||||
/**
|
||||
* 压缩解压异常语言异常
|
||||
*
|
||||
*
|
||||
* @author Looly
|
||||
*/
|
||||
public class CompressException extends RuntimeException {
|
||||
@@ -27,6 +27,10 @@ public class CompressException extends RuntimeException {
|
||||
super(message, throwable);
|
||||
}
|
||||
|
||||
public CompressException(String message, Throwable throwable, boolean enableSuppression, boolean writableStackTrace) {
|
||||
super(message, throwable, enableSuppression, writableStackTrace);
|
||||
}
|
||||
|
||||
public CompressException(Throwable throwable, String messageTemplate, Object... params) {
|
||||
super(StrUtil.format(messageTemplate, params), throwable);
|
||||
}
|
||||
|
@@ -5,7 +5,7 @@ import cn.hutool.core.util.StrUtil;
|
||||
|
||||
/**
|
||||
* 表达式语言异常
|
||||
*
|
||||
*
|
||||
* @author Looly
|
||||
*/
|
||||
public class ExpressionException extends RuntimeException {
|
||||
@@ -27,6 +27,10 @@ public class ExpressionException extends RuntimeException {
|
||||
super(message, throwable);
|
||||
}
|
||||
|
||||
public ExpressionException(String message, Throwable throwable, boolean enableSuppression, boolean writableStackTrace) {
|
||||
super(message, throwable, enableSuppression, writableStackTrace);
|
||||
}
|
||||
|
||||
public ExpressionException(Throwable throwable, String messageTemplate, Object... params) {
|
||||
super(StrUtil.format(messageTemplate, params), throwable);
|
||||
}
|
||||
|
@@ -5,7 +5,7 @@ import cn.hutool.core.util.StrUtil;
|
||||
|
||||
/**
|
||||
* Ftp异常
|
||||
*
|
||||
*
|
||||
* @author xiaoleilu
|
||||
*/
|
||||
public class FtpException extends RuntimeException {
|
||||
@@ -27,6 +27,10 @@ public class FtpException extends RuntimeException {
|
||||
super(message, throwable);
|
||||
}
|
||||
|
||||
public FtpException(String message, Throwable throwable, boolean enableSuppression, boolean writableStackTrace) {
|
||||
super(message, throwable, enableSuppression, writableStackTrace);
|
||||
}
|
||||
|
||||
public FtpException(Throwable throwable, String messageTemplate, Object... params) {
|
||||
super(StrUtil.format(messageTemplate, params), throwable);
|
||||
}
|
||||
|
@@ -13,19 +13,23 @@ public class MailException extends RuntimeException{
|
||||
public MailException(Throwable e) {
|
||||
super(ExceptionUtil.getMessage(e), e);
|
||||
}
|
||||
|
||||
|
||||
public MailException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
|
||||
public MailException(String messageTemplate, Object... params) {
|
||||
super(StrUtil.format(messageTemplate, params));
|
||||
}
|
||||
|
||||
|
||||
public MailException(String message, Throwable throwable) {
|
||||
super(message, throwable);
|
||||
}
|
||||
|
||||
|
||||
public MailException(String message, Throwable throwable, boolean enableSuppression, boolean writableStackTrace) {
|
||||
super(message, throwable, enableSuppression, writableStackTrace);
|
||||
}
|
||||
|
||||
public MailException(Throwable throwable, String messageTemplate, Object... params) {
|
||||
super(StrUtil.format(messageTemplate, params), throwable);
|
||||
}
|
||||
|
@@ -5,7 +5,7 @@ import cn.hutool.core.util.StrUtil;
|
||||
|
||||
/**
|
||||
* 模板异常
|
||||
*
|
||||
*
|
||||
* @author xiaoleilu
|
||||
*/
|
||||
public class PinyinException extends RuntimeException {
|
||||
@@ -27,6 +27,10 @@ public class PinyinException extends RuntimeException {
|
||||
super(message, throwable);
|
||||
}
|
||||
|
||||
public PinyinException(String message, Throwable throwable, boolean enableSuppression, boolean writableStackTrace) {
|
||||
super(message, throwable, enableSuppression, writableStackTrace);
|
||||
}
|
||||
|
||||
public PinyinException(Throwable throwable, String messageTemplate, Object... params) {
|
||||
super(StrUtil.format(messageTemplate, params), throwable);
|
||||
}
|
||||
|
@@ -5,7 +5,7 @@ import cn.hutool.core.util.StrUtil;
|
||||
|
||||
/**
|
||||
* Qrcode异常
|
||||
*
|
||||
*
|
||||
* @author xiaoleilu
|
||||
*/
|
||||
public class QrCodeException extends RuntimeException {
|
||||
@@ -27,6 +27,10 @@ public class QrCodeException extends RuntimeException {
|
||||
super(message, throwable);
|
||||
}
|
||||
|
||||
public QrCodeException(String message, Throwable throwable, boolean enableSuppression, boolean writableStackTrace) {
|
||||
super(message, throwable, enableSuppression, writableStackTrace);
|
||||
}
|
||||
|
||||
public QrCodeException(Throwable throwable, String messageTemplate, Object... params) {
|
||||
super(StrUtil.format(messageTemplate, params), throwable);
|
||||
}
|
||||
|
@@ -13,19 +13,23 @@ public class JschRuntimeException extends RuntimeException{
|
||||
public JschRuntimeException(Throwable e) {
|
||||
super(ExceptionUtil.getMessage(e), e);
|
||||
}
|
||||
|
||||
|
||||
public JschRuntimeException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
|
||||
public JschRuntimeException(String messageTemplate, Object... params) {
|
||||
super(StrUtil.format(messageTemplate, params));
|
||||
}
|
||||
|
||||
|
||||
public JschRuntimeException(String message, Throwable throwable) {
|
||||
super(message, throwable);
|
||||
}
|
||||
|
||||
|
||||
public JschRuntimeException(String message, Throwable throwable, boolean enableSuppression, boolean writableStackTrace) {
|
||||
super(message, throwable, enableSuppression, writableStackTrace);
|
||||
}
|
||||
|
||||
public JschRuntimeException(Throwable throwable, String messageTemplate, Object... params) {
|
||||
super(StrUtil.format(messageTemplate, params), throwable);
|
||||
}
|
||||
|
@@ -5,7 +5,7 @@ import cn.hutool.core.util.StrUtil;
|
||||
|
||||
/**
|
||||
* 模板异常
|
||||
*
|
||||
*
|
||||
* @author xiaoleilu
|
||||
*/
|
||||
public class TemplateException extends RuntimeException {
|
||||
@@ -27,6 +27,10 @@ public class TemplateException extends RuntimeException {
|
||||
super(message, throwable);
|
||||
}
|
||||
|
||||
public TemplateException(String message, Throwable throwable, boolean enableSuppression, boolean writableStackTrace) {
|
||||
super(message, throwable, enableSuppression, writableStackTrace);
|
||||
}
|
||||
|
||||
public TemplateException(Throwable throwable, String messageTemplate, Object... params) {
|
||||
super(StrUtil.format(messageTemplate, params), throwable);
|
||||
}
|
||||
|
@@ -5,7 +5,7 @@ import cn.hutool.core.util.StrUtil;
|
||||
|
||||
/**
|
||||
* 分词异常
|
||||
*
|
||||
*
|
||||
* @author Looly
|
||||
*/
|
||||
public class TokenizerException extends RuntimeException {
|
||||
@@ -27,6 +27,10 @@ public class TokenizerException extends RuntimeException {
|
||||
super(message, throwable);
|
||||
}
|
||||
|
||||
public TokenizerException(String message, Throwable throwable, boolean enableSuppression, boolean writableStackTrace) {
|
||||
super(message, throwable, enableSuppression, writableStackTrace);
|
||||
}
|
||||
|
||||
public TokenizerException(Throwable throwable, String messageTemplate, Object... params) {
|
||||
super(StrUtil.format(messageTemplate, params), throwable);
|
||||
}
|
||||
|
Reference in New Issue
Block a user