Package jade.util

Class WrapperException

    • Constructor Detail

      • WrapperException

        protected WrapperException​(String m,
                                   Throwable t)
        Create a wrapper exception with the given message and nested exception.
        Parameters:
        m - The exception message text.
        t - The nested exception that caused this one.
      • WrapperException

        protected WrapperException​(String m)
        Create a wrapper exception with the given message.
        Parameters:
        m - The exception message text.
    • Method Detail

      • getMessage

        public String getMessage()
        Retrieve the exception message text.
        Overrides:
        getMessage in class Throwable
        Returns:
        The exception message, including the nested exception text if present.
      • printStackTrace

        public void printStackTrace​(PrintWriter pw)
        Prints the stack trace of this exception. If a nested exception is present, its stack trace is also printed.
        Overrides:
        printStackTrace in class Throwable
      • getNested

        public Throwable getNested()
        Reads the exception wrapped by this object.
        Returns:
        the Throwable object that is the exception that was originally thrown.