public interface ErrorAttributes
DefaultErrorAttributes| Modifier and Type | Method and Description |
|---|---|
java.lang.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. |
default java.util.Map<java.lang.String,java.lang.Object> |
getErrorAttributes(org.springframework.web.reactive.function.server.ServerRequest request,
boolean includeStackTrace)
Deprecated.
since 2.3.0 for removal in 2.5.0 in favor of
getErrorAttributes(ServerRequest, ErrorAttributeOptions) |
default java.util.Map<java.lang.String,java.lang.Object> |
getErrorAttributes(org.springframework.web.reactive.function.server.ServerRequest request,
ErrorAttributeOptions options)
Return a
Map of the error attributes. |
void |
storeErrorInformation(java.lang.Throwable error,
org.springframework.web.server.ServerWebExchange exchange)
Store the given error information in the current
ServerWebExchange. |
@Deprecated
default java.util.Map<java.lang.String,java.lang.Object> getErrorAttributes(org.springframework.web.reactive.function.server.ServerRequest request,
boolean includeStackTrace)
getErrorAttributes(ServerRequest, ErrorAttributeOptions)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 attribute should be includeddefault java.util.Map<java.lang.String,java.lang.Object> getErrorAttributes(org.springframework.web.reactive.function.server.ServerRequest request,
ErrorAttributeOptions options)
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 requestoptions - options for error attribute contentsjava.lang.Throwable 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 nullvoid storeErrorInformation(java.lang.Throwable error,
org.springframework.web.server.ServerWebExchange exchange)
ServerWebExchange.error - the Exception that caused the errorexchange - the source exchange