doEnrich
public void doEnrich(ErrorResponseResource errorResponseResource,
Throwable throwable,
WebRequest request,
HttpStatus httpStatus)
Performs the enrichment of the error response resource.
Note that the http status is a given, it is assumed to be determined in the exception handler.
- Specified by:
doEnrich
in interface ErrorResponseEnricher
- Parameters:
errorResponseResource
- the error response resource
throwable
- the exception that was raised
request
- the original web request
httpStatus
- the http status that will be returned