Class WrappedRuntimeException

  • All Implemented Interfaces:
    java.io.Serializable

    public class WrappedRuntimeException
    extends java.lang.RuntimeException
    This class is for throwing important checked exceptions over non-checked methods. It should be used with care, and in limited circumstances.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Exception m_exception
      Primary checked exception.
    • Constructor Summary

      Constructors 
      Constructor Description
      WrappedRuntimeException​(java.lang.Exception e)
      Construct a WrappedRuntimeException from a checked exception.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Exception getException()
      Get the checked exception that this runtime exception wraps.
      • 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
    • Field Detail

      • m_exception

        private final java.lang.Exception m_exception
        Primary checked exception.
    • Constructor Detail

      • WrappedRuntimeException

        public WrappedRuntimeException​(java.lang.Exception e)
        Construct a WrappedRuntimeException from a checked exception.
        Parameters:
        e - Primary checked exception
    • Method Detail

      • getException

        public java.lang.Exception getException()
        Get the checked exception that this runtime exception wraps.
        Returns:
        The primary checked exception