com.wizzdi.dynamic.annotations.service.cn.xdean.jex.ExceptionUtil Maven / Gradle / Ivy
package com.wizzdi.dynamic.annotations.service.cn.xdean.jex;
public class ExceptionUtil {
static T uncheck(ThrowingSupplier supplier) {
try {
return supplier.supply();
} catch (Throwable e) {
throw new RuntimeException(e);
}
}
static void uncheck(ThrowingAction action) {
try {
action.apply();
} catch (Throwable e) {
throw new RuntimeException(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy