public interface ServerErrorHandler
@NonBlocking void error(Context context, Exception exception) throws Exception
Implementations should strive to avoid throwing exceptions. If exceptions are thrown, they will just be logged at a warning level and the response will be finalised with a 500 error code and empty body.
context
- The context being processedexception
- The exception that occurredException
- if something goes wrong handling the error