Package org.forgerock.openig.mcp.jsonrpc
Class JsonRpcValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.forgerock.openig.mcp.jsonrpc.JsonRpcValidationException
- All Implemented Interfaces:
Serializable
Exception thrown when JSON-RPC validation fails.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJsonRpcValidationException(JsonRpcResponse.JsonRpcError.JsonRpcErrorCode code, JsonValue id, String message, List<String> details) Creates a new JsonRpcValidationException. -
Method Summary
Modifier and TypeMethodDescriptionReturns the JSON-RPC error representation of this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JsonRpcValidationException
public JsonRpcValidationException(JsonRpcResponse.JsonRpcError.JsonRpcErrorCode code, JsonValue id, String message, List<String> details) Creates a new JsonRpcValidationException.- Parameters:
code- the JSON-RPC error code, cannot benullid- the id of the JSON-RPC request that caused this error, may benullmessage- the error messagedetails- list of detailed error messages, cannot benull
-
-
Method Details
-
toJsonRpcError
Returns the JSON-RPC error representation of this exception.- Returns:
- the JSON-RPC error representation of this exception
-