- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A lambda "catch-all" for handling exceptions during HTTP-Request processing.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onHttpError
(RestRequestEvent aRequestEvent, org.refcodes.web.HttpServerResponse aHttpServerResponse, Exception aException, org.refcodes.web.HttpStatusCode aHttpStatusCode) Invoked upon thrownException
instances whilst processing HTTP-Requests.
-
Method Details
-
onHttpError
void onHttpError(RestRequestEvent aRequestEvent, org.refcodes.web.HttpServerResponse aHttpServerResponse, Exception aException, org.refcodes.web.HttpStatusCode aHttpStatusCode) Invoked upon thrownException
instances whilst processing HTTP-Requests. Process the HTTP-Response as of what you get from the HTTP-Request
-