public interface WebErrorHandlerPostProcessor
HttpErrors. Every post processor registered
as Spring bean will be called after error is prepared.
This might be considered as richer and more flexible alternative to ExceptionLogger.
The former logs at the beginning of error handling and the exception is the only parameter
there. This post processor takes as its parameter rich HttpError parameter, which
contains original exception along with other goodies. Moreover, more than single post processor
can be declared.
| Modifier and Type | Method and Description |
|---|---|
void |
process(HttpError error)
The logic to execute when we finished to handle the exception and just before returning the
result.
|
void process(@NonNull
HttpError error)
error - HttpError to act upon.Copyright © 2019. All rights reserved.