public class RestServletException extends ServletException
RestServlet
during construction or initialization.Constructor and Description |
---|
RestServletException(String message,
Object... args)
Constructor.
|
RestServletException(Throwable cause,
String message,
Object... args)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T extends Throwable> |
getCause(Class<T> c)
Similar to
Throwable.getCause() but searches until it finds the throwable of the specified type. |
getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RestServletException(String message, Object... args)
message
- The detailed message.args
- Optional MessageFormat
-style arguments.public RestServletException(Throwable cause, String message, Object... args)
cause
- The cause.message
- The detailed message.args
- Optional MessageFormat
-style arguments.public <T extends Throwable> T getCause(Class<T> c)
Throwable.getCause()
but searches until it finds the throwable of the specified type.T
- The throwable type.c
- The throwable type.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.