修改异常包装策略:运行时异常不包装,只包装非运行时异常

This commit is contained in:
Looly
2023-08-08 19:03:56 +08:00
parent d5ac761f08
commit cd53378ae3
35 changed files with 155 additions and 92 deletions

View File

@@ -17,6 +17,7 @@ import lombok.Getter;
import lombok.Setter;
import lombok.SneakyThrows;
import org.dromara.hutool.core.collection.ListUtil;
import org.dromara.hutool.core.exception.ExceptionUtil;
import org.dromara.hutool.core.reflect.ConstructorUtil;
import org.dromara.hutool.core.reflect.lookup.LookupUtil;
import org.junit.jupiter.api.Assertions;
@@ -322,7 +323,7 @@ public class LambdaFactoryTest {
try {
return get0();
} catch (final Throwable e) {
throw new RuntimeException(e);
throw ExceptionUtil.wrapRuntime(e);
}
}
}