Class ExceptionWrapper
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.yahoo.jdisc.http.server.jetty.ExceptionWrapper
-
- All Implemented Interfaces:
Serializable
public class ExceptionWrapper extends RuntimeException
A wrapper to make exceptions leaking into Jetty easier to track. Jetty swallows all information about where an exception was thrown, so this wrapper ensures some extra information is automatically added to the contents of getMessage().- Author:
- Steinar Knutsen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExceptionWrapper(Throwable t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ExceptionWrapper
public ExceptionWrapper(Throwable t)
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-