mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-07 22:27:59 +08:00
add method
This commit is contained in:
parent
db2b350684
commit
a329a1c44c
@ -3,7 +3,7 @@
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# 5.5.2 (2020-11-25)
|
||||
# 5.5.2 (2020-11-26)
|
||||
|
||||
### 新特性
|
||||
* 【crypto 】 KeyUtil增加重载,AES构造增加重载(issue#I25NNZ@Gitee)
|
||||
@ -16,6 +16,7 @@
|
||||
* 【core 】 ZipUtil增加get方法
|
||||
* 【cache 】 对CacheObj等变量使用volatile关键字
|
||||
* 【core 】 Base64增加encodeWithoutPadding方法(issue#I26J16@Gitee)
|
||||
* 【core 】 ExceptionUtil增加message消息包装为运行时异常的方法(issue#1253@Gitee)
|
||||
|
||||
### Bug修复
|
||||
* 【cron 】 修复CronTimer可能死循环的问题(issue#1224@Github)
|
||||
|
@ -18,7 +18,6 @@ import java.util.Map;
|
||||
* 异常工具类
|
||||
*
|
||||
* @author Looly
|
||||
*
|
||||
*/
|
||||
public class ExceptionUtil {
|
||||
|
||||
@ -47,7 +46,7 @@ public class ExceptionUtil {
|
||||
|
||||
/**
|
||||
* 使用运行时异常包装编译异常<br>
|
||||
*
|
||||
* <p>
|
||||
* 如果传入参数已经是运行时异常,则直接返回,不再额外包装
|
||||
*
|
||||
* @param throwable 异常
|
||||
@ -62,6 +61,7 @@ public class ExceptionUtil {
|
||||
|
||||
/**
|
||||
* 将指定的消息包装为运行时异常
|
||||
*
|
||||
* @param message 异常消息
|
||||
* @return 运行时异常
|
||||
* @since 5.5.2
|
||||
@ -105,6 +105,7 @@ public class ExceptionUtil {
|
||||
|
||||
/**
|
||||
* 将消息包装为运行时异常并抛出
|
||||
*
|
||||
* @param message 异常消息
|
||||
* @since 5.5.2
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user