Class WrappedException

All Implemented Interfaces:
Serializable

public class WrappedException extends RuntimeException
A runtime exception that wraps another exception.
See Also:
  • Constructor Details

    • WrappedException

      public WrappedException(Exception exception)
      Creates an instance that wraps the exception.
    • WrappedException

      public WrappedException(String message, Exception exception)
      Creates an instance with it's own message that wraps the exception.
      Parameters:
      message - the message.
      exception - the exception to wrap.
  • Method Details

    • exception

      public Exception exception()
      Returns the wrapped exception.
      Returns:
      the wrapped exception.