public interface ErrorAttributes
DefaultErrorAttributes
Modifier and Type | Method and Description |
---|---|
Throwable |
getError(org.springframework.web.reactive.function.server.ServerRequest request)
Return the underlying cause of the error or
null if the error cannot be
extracted. |
Map<String,Object> |
getErrorAttributes(org.springframework.web.reactive.function.server.ServerRequest request,
boolean includeStackTrace)
Return a
Map of the error attributes. |
void |
storeErrorInformation(Throwable error,
org.springframework.web.server.ServerWebExchange exchange)
Store the given error information in the current
ServerWebExchange . |
Map<String,Object> getErrorAttributes(org.springframework.web.reactive.function.server.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(org.springframework.web.reactive.function.server.ServerRequest request)
null
if the error cannot be
extracted.request
- the source ServerRequestException
that caused the error or null
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.