public interface ErrorAttributes
DefaultErrorAttributes| Modifier and Type | Method and Description |
|---|---|
Throwable |
getError(ServerRequest request)
Return the underlying cause of the error or
null if the error cannot be
extracted. |
Map<String,Object> |
getErrorAttributes(ServerRequest request,
boolean includeStackTrace)
Return a
Map of the error attributes. |
void |
storeErrorInformation(Throwable error,
ServerWebExchange exchange)
Store the given error information in the current
ServerWebExchange. |
Map<String,Object> getErrorAttributes(ServerRequest request, boolean includeStackTrace)
Map of the error attributes. The map can be used as the model of
an error page, or returned as a ServerResponse body.request - the source requestincludeStackTrace - if stack trace elements should be includedThrowable getError(ServerRequest request)
null if the error cannot be
extracted.request - the source ServerRequestException that caused the error or nullvoid storeErrorInformation(Throwable error, ServerWebExchange exchange)
ServerWebExchange.error - the Exception that caused the errorexchange - the source exchangeCopyright © 2018 Pivotal Software, Inc.. All rights reserved.