Class WrappedException

  • All Implemented Interfaces:
    java.io.Serializable

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.RuntimeException getAsRuntime()  
      <E extends java.lang.Exception>
      WrappedException
      ifThrowAs​(java.lang.Class<E> clazz)  
      void throwAsRuntime()  
      • 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()
      • WrappedException

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

      • ifThrowAs

        public <E extends java.lang.Exception> WrappedException ifThrowAs​(java.lang.Class<E> clazz)
                                                                   throws E extends java.lang.Exception
        Throws:
        E extends java.lang.Exception
      • throwAsRuntime

        public void throwAsRuntime()
                            throws java.lang.RuntimeException
        Throws:
        java.lang.RuntimeException
      • getAsRuntime

        public java.lang.RuntimeException getAsRuntime()