Extends ServletException for convenient throwing in any Servlet resource (such as a Filter), and NestedServletException for proper root cause handling (as the plain ServletException doesn't expose its root cause at all).
| Modifier and Type | Field and Description |
|---|---|
| private final ProblemDetail | |
| private final Object[] | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ServletRequestBindingException(String
the detail message msg, Throwable the root cause cause)Constructor with a message and a cause. |
| protected | ServletRequestBindingException(String
the detail message msg, String the code to use to resolve the problem "detail"
through a messageDetailCode, Object[] org.the arguments to make available when
resolving the problem "detail" through a messageDetailArguments)MessageSourceConstructor for ServletRequestBindingException. |
| protected | ServletRequestBindingException(String
the detail message msg, Throwable the root cause cause, String the code to use to resolve the problem "detail"
through a messageDetailCode, Object[] org.the arguments to make available when
resolving the problem "detail" through a messageDetailArguments)MessageSourceConstructor for ServletRequestBindingException. |
| Modifier and Type | Method and Description |
|---|---|
| public ProblemDetail | getBody()
Implements org. Return the body for the response, formatted as an RFC 7807
|
| public Object[] | getDetailMessageArguments()
Overrides default org. Return arguments to use along with a |
| public String | getDetailMessageCode()
Overrides default org. Return a code to use to resolve the problem "detail" for this exception
through a |
| public HttpStatusCode | getStatusCode()
Implements org. Return the HTTP status code to use for the response. |
| private String |
| body | back to summary |
|---|---|
| private final ProblemDetail body | |
| messageDetailArguments | back to summary |
|---|---|
| private final Object[] messageDetailArguments
| |
| messageDetailCode | back to summary |
|---|---|
| private final String messageDetailCode | |
| ServletRequestBindingException | back to summary |
|---|---|
| public ServletRequestBindingException(String msg) Constructor with a message only.
| |
| ServletRequestBindingException | back to summary |
|---|---|
| public ServletRequestBindingException(String msg, Throwable cause) Constructor with a message and a cause. | |
| ServletRequestBindingException | back to summary |
|---|---|
| protected ServletRequestBindingException(String msg, String messageDetailCode, Object[] messageDetailArguments) Constructor for ServletRequestBindingException.
| |
| ServletRequestBindingException | back to summary |
|---|---|
| protected ServletRequestBindingException(String msg, Throwable cause, String messageDetailCode, Object[] messageDetailArguments) Constructor for ServletRequestBindingException.
| |
| getBody | back to summary |
|---|---|
| public ProblemDetail getBody() Implements org. Doc from org. Return the body for the response, formatted as an RFC 7807
| |
| getDetailMessageArguments | back to summary |
|---|---|
| public Object[] getDetailMessageArguments() Overrides default org. Doc from org. Return arguments to use along with a
| |
| getDetailMessageCode | back to summary |
|---|---|
| public String getDetailMessageCode() Overrides default org. Doc from org. Return a code to use to resolve the problem "detail" for this exception
through a By default this is initialized via
| |
| getStatusCode | back to summary |
|---|---|
| public HttpStatusCode getStatusCode() Implements org. Doc from org. Return the HTTP status code to use for the response.
| |
| initMessageDetailCode | back to summary |
|---|---|
| private String initMessageDetailCode(String messageDetailCode) | |