Package org.n52.web.exception
Class WebExceptionAdapter
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.n52.web.exception.WebExceptionAdapter
-
- All Implemented Interfaces:
Serializable,WebException
- Direct Known Subclasses:
BadRequestException,InternalServerException,ResourceNotFoundException,UnsupportedMediaTypeException
public abstract class WebExceptionAdapter extends RuntimeException implements WebException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebExceptionAdapter(String message)WebExceptionAdapter(String message, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebExceptionAdapteraddHint(String hint)WebExceptionAdapteraddHint(String... hints)String[]getHints()ThrowablegetThrowable()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
addHint
public WebExceptionAdapter addHint(String... hints)
- Specified by:
addHintin interfaceWebException
-
addHint
public WebExceptionAdapter addHint(String hint)
- Specified by:
addHintin interfaceWebException
-
getHints
public String[] getHints()
- Specified by:
getHintsin interfaceWebException
-
getThrowable
public Throwable getThrowable()
- Specified by:
getThrowablein interfaceWebException
-
-