Class ExceptionUtil


  • public class ExceptionUtil
    extends Object
    Class ExceptionUtil.
    • Method Detail

      • toException

        public static Exception toException​(Throwable throwable)
        Wrap throwable into Exception.
        Parameters:
        throwable - The throwable.
        Returns:
        A RuntimeException.
      • toWrappedException

        public static io.helidon.microprofile.faulttolerance.ExceptionUtil.WrappedException toWrappedException​(Throwable throwable)
        Wrap throwable into RuntimeException.
        Parameters:
        throwable - The throwable.
        Returns:
        A RuntimeException.
      • unwrapHystrix

        public static Throwable unwrapHystrix​(Throwable throwable)
        Unwrap an throwable wrapped by HystrixRuntimeException.
        Parameters:
        throwable - Throwable to unwrap.
        Returns:
        Unwrapped throwable.