Module io.helidon.webserver.jsonrpc
Package io.helidon.webserver.jsonrpc
Interface JsonRpcErrorHandler
- All Superinterfaces:
ServerLifecycle
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A JSON-RPC handler that can process invalid requests if registered.
-
Method Summary
Modifier and TypeMethodDescriptionhandle
(ServerRequest req, JsonObject jsonObject) Handler for a JSON-RPC erroneous request.Methods inherited from interface io.helidon.webserver.ServerLifecycle
afterStart, afterStop, beforeStart
-
Method Details
-
handle
Handler for a JSON-RPC erroneous request.- Parameters:
req
- the server requestjsonObject
- an invalid JSON-RPC request as a JSON object- Returns:
- an optional JSON-RPC error to be returned to the client. If empty, then no error is returned.
- Throws:
Exception
- if an unexpected condition is found
-