Package io.a2a.server

Class JSONRPCException

All Implemented Interfaces:
Serializable

public class JSONRPCException extends Exception
Exception wrapper for JSON-RPC protocol errors.

This exception encapsulates a A2AError for handling protocol-level errors during JSON-RPC request processing.

See Also:
  • Constructor Details

    • JSONRPCException

      public JSONRPCException(A2AError error)
      Creates a JSONRPCException wrapping the specified error.
      Parameters:
      error - the JSON-RPC error
  • Method Details

    • getError

      public A2AError getError()
      Returns the wrapped JSON-RPC error.
      Returns:
      the JSON-RPC error