params);
+ /**
+ * If exception will be thrown in this method, standard JSON RPC error will be generated.
+ * Example
+ *
+ * {
+ * "jsonrpc":"2.0",
+ * "id":0,
+ * "error":{
+ * "code":-32001,
+ * "message":"123",
+ * "data":{
+ * "exceptionTypeName":"java.lang.RuntimeException",
+ * "message":"123"
+ * }
+ * }
+ * }
+ *
+ *
+ * For changing exception handling custom {@link ErrorResolver} could be generated.
+ *
+ *
+ * @param target target service
+ * @param method target method
+ * @param paramsJsonNode a JSON node received in the "params" request object field
+ * @param jsonParams list of params as {@link JsonNode}s
+ * @param deserializedParams list of params as deserialized objects
+ * @param detectedParamNames list of params names.
+ * Names are present only if the request object contains
+ * a JSON object in the "parameters" field,
+ * and the target method has annotated parameters.
+ * This List may contain {@code null} elements.
+ */
+ default void preHandle(
+ Object target,
+ Method method,
+ JsonNode paramsJsonNode,
+ List jsonParams,
+ List