ResponseStatusException by setting the response status.
By default exception stack traces are not shown for successfully resolved
exceptions. Use setWarnLogCategory(String) to enable logging with
stack traces.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected int | Returns: the associated HTTP status code, or -1 if it can't be derived.the exception to check ex)
Deprecated
since 6.0. as of 6.0, in favor of
determineStatus(Throwable)
Determine the raw status code for the given exception. |
| protected HttpStatusCode | Returns: the associated HTTP status code, ornull if it can't be
derivedthe exception to check ex)Determine the HTTP status for the given exception. |
| private String | |
| public Mono | handle(ServerWebExchange
the current exchange exchange, Throwable the exception to handle ex)Implements org. Handle the given exception. |
| public void | |
| private boolean |
| logger | back to summary |
|---|---|
| private static final Log logger | |
| warnLogger | back to summary |
|---|---|
| private Log warnLogger
| |
| ResponseStatusExceptionHandler | back to summary |
|---|---|
| public ResponseStatusExceptionHandler() | |
| determineRawStatusCode | back to summary |
|---|---|
| protected int determineRawStatusCode(Throwable ex)
Determine the raw status code for the given exception.
| |
| determineStatus | back to summary |
|---|---|
| protected HttpStatusCode determineStatus(Throwable ex) Determine the HTTP status for the given exception.
| |
| formatError | back to summary |
|---|---|
| private String formatError(Throwable ex, ServerHttpRequest request) | |
| handle | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Handle the given exception. A completion signal through the return value indicates error handling is complete while an error signal indicates the exception is still not handled.
| |
| setWarnLogCategory | back to summary |
|---|---|
| public void setWarnLogCategory(String loggerName) Set the log category for warn logging. Default is no warn logging. Specify this setting to activate warn logging into a specific category. | |
| updateResponse | back to summary |
|---|---|
private boolean updateResponse(ServerHttpResponse response, Throwable ex)
| |