Class JsonRpcValidationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.forgerock.openig.mcp.jsonrpc.JsonRpcValidationException
All Implemented Interfaces:
Serializable

public class JsonRpcValidationException extends Exception
Exception thrown when JSON-RPC validation fails.
See Also:
  • 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 be null
      id - the id of the JSON-RPC request that caused this error, may be null
      message - the error message
      details - list of detailed error messages, cannot be null
  • Method Details

    • toJsonRpcError

      public JsonRpcResponse.JsonRpcError toJsonRpcError()
      Returns the JSON-RPC error representation of this exception.
      Returns:
      the JSON-RPC error representation of this exception