Class WrappedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class WrappedException
    extends java.lang.RuntimeException
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      WrappedException​(java.lang.Throwable cause)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Throwable unWrap​(java.lang.Throwable e)  
      static void wrap​(RunnableWithException runnable)  
      static <T> T wrapCallable​(CallableWithThrowable<T> callable)  
      static <T> java.util.function.Consumer<T> wrapConsumer​(ConsumerWithException<T> consumer)  
      static <T1,​T2>
      java.util.function.Function<T1,​T2>
      wrapFn​(java.util.function.Function<T1,​T2> fn)  
      static <T1,​T2>
      java.util.function.Function<T1,​T2>
      wrapFnWithE​(FunctionWithException<T1,​T2> fn)  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WrappedException

        public WrappedException​(java.lang.Throwable cause)
    • Method Detail

      • wrapConsumer

        public static <T> java.util.function.Consumer<T> wrapConsumer​(ConsumerWithException<T> consumer)
      • wrapFn

        public static <T1,​T2> java.util.function.Function<T1,​T2> wrapFn​(java.util.function.Function<T1,​T2> fn)
      • wrapFnWithE

        public static <T1,​T2> java.util.function.Function<T1,​T2> wrapFnWithE​(FunctionWithException<T1,​T2> fn)
      • unWrap

        public static java.lang.Throwable unWrap​(java.lang.Throwable e)