Class GlobalErrorAttributes
java.lang.Object
org.springframework.boot.web.reactive.error.DefaultErrorAttributes
es.kukenan.smartfi.microservice.security.gateway.configuration.GlobalErrorAttributes
- All Implemented Interfaces:
org.springframework.boot.web.reactive.error.ErrorAttributes
@Component
public class GlobalErrorAttributes
extends org.springframework.boot.web.reactive.error.DefaultErrorAttributes
Global error attributes for web flux error handler.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringmessage of the request.private org.springframework.http.HttpStatusStatus of the request.Fields inherited from interface org.springframework.boot.web.reactive.error.ErrorAttributes
ERROR_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetErrorAttributes(org.springframework.web.reactive.function.server.ServerRequest request, org.springframework.boot.web.error.ErrorAttributeOptions errorAttributeOptions) Get error attributes for webflux errors handler.Methods inherited from class org.springframework.boot.web.reactive.error.DefaultErrorAttributes
getError, storeErrorInformation
-
Field Details
-
status
private org.springframework.http.HttpStatus statusStatus of the request. -
message
message of the request.
-
-
Constructor Details
-
GlobalErrorAttributes
public GlobalErrorAttributes()Constructor.
-
-
Method Details
-
getErrorAttributes
public Map<String,Object> getErrorAttributes(org.springframework.web.reactive.function.server.ServerRequest request, org.springframework.boot.web.error.ErrorAttributeOptions errorAttributeOptions) Get error attributes for webflux errors handler.- Specified by:
getErrorAttributesin interfaceorg.springframework.boot.web.reactive.error.ErrorAttributes- Overrides:
getErrorAttributesin classorg.springframework.boot.web.reactive.error.DefaultErrorAttributes- Parameters:
request- Request with data.errorAttributeOptions- booloean for include stac trace of exception.- Returns:
- Map with error attributes.
-