Class InternalError

All Implemented Interfaces:
Serializable, Event

public class InternalError extends A2AError
JSON-RPC error indicating an internal error occurred on the server.

This error represents unexpected server-side failures such as unhandled exceptions, resource exhaustion, or other internal issues that prevent the server from processing a request. This is a catch-all error for server problems not covered by more specific error types.

Corresponds to JSON-RPC 2.0 error code -32603.

Usage example:


 try {
     // Server processing
 } catch (Exception e) {
     throw new InternalError("Failed to process request: " + e.getMessage());
 }
 
See Also:
  • Constructor Details

    • InternalError

      public InternalError(@Nullable Integer code, @Nullable String message, @Nullable Map<String,Object> details)
      Constructs an internal error with full parameters.
      Parameters:
      code - the error code
      message - the error message
      details - additional error details
    • InternalError

      public InternalError(@Nullable String message)
      Constructs an internal error with a message.
      Parameters:
      message - the error message