public interface ServerErrorHandler
|Modifier and Type||Field and Description|
A type token for this type.
@NonBlocking void error(Context context, Throwable throwable) 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 processed
throwable- The throwable that occurred
Exception- if something goes wrong handling the error