Class ExceptionUtil
- java.lang.Object
-
- io.helidon.microprofile.faulttolerance.ExceptionUtil
-
public class ExceptionUtil extends Object
Class ExceptionUtil.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExceptiontoException(Throwable throwable)Wrap throwable intoException.static io.helidon.microprofile.faulttolerance.ExceptionUtil.WrappedExceptiontoWrappedException(Throwable throwable)Wrap throwable intoRuntimeException.static ThrowableunwrapHystrix(Throwable throwable)Unwrap an throwable wrapped byHystrixRuntimeException.
-
-
-
Method Detail
-
toException
public static Exception toException(Throwable throwable)
Wrap throwable intoException.- Parameters:
throwable- The throwable.- Returns:
- A
RuntimeException.
-
toWrappedException
public static io.helidon.microprofile.faulttolerance.ExceptionUtil.WrappedException toWrappedException(Throwable throwable)
Wrap throwable intoRuntimeException.- Parameters:
throwable- The throwable.- Returns:
- A
RuntimeException.
-
-