Uses of Class
org.a2aproject.sdk.spec.A2AError
Packages that use A2AError
Package
Description
Common OpenTelemetry utilities and shared components for A2A Java SDK.
JSON-RPC 2.0 protocol message wrappers for the A2A Protocol.
JSON processing exceptions for the A2A Java SDK.
JSON-RPC transport handler implementations for the A2A protocol.
REST transport handler implementations for the A2A protocol.
-
Uses of A2AError in org.a2aproject.sdk.compat03.conversion
Methods in org.a2aproject.sdk.compat03.conversion with parameters of type A2AErrorModifier and TypeMethodDescriptionstatic JSONRPCError_v0_3ErrorConverter_v0_3.convertA2AError(A2AError v10Error) Converts a v1.0 A2AError to a v0.3 JSONRPCError.Methods in org.a2aproject.sdk.compat03.conversion that throw A2AErrorModifier and TypeMethodDescriptionConvert_v0_3_To10RequestHandler.onCancelTask(TaskIdParams_v0_3 v03Params, ServerCallContext context) Cancels a task.voidConvert_v0_3_To10RequestHandler.onDeleteTaskPushNotificationConfig(DeleteTaskPushNotificationConfigParams_v0_3 v03Params, ServerCallContext context) Deletes a task push notification configuration.Convert_v0_3_To10RequestHandler.onGetTask(TaskQueryParams_v0_3 v03Params, ServerCallContext context) Gets a task by ID.Convert_v0_3_To10RequestHandler.onGetTaskPushNotificationConfig(GetTaskPushNotificationConfigParams_v0_3 v03Params, ServerCallContext context) Gets a task push notification configuration.Convert_v0_3_To10RequestHandler.onListTaskPushNotificationConfig(ListTaskPushNotificationConfigParams_v0_3 v03Params, ServerCallContext context) Lists task push notification configurations.Convert_v0_3_To10RequestHandler.onMessageSend(MessageSendParams_v0_3 v03Params, ServerCallContext context) Sends a message (blocking).Convert_v0_3_To10RequestHandler.onMessageSendStream(MessageSendParams_v0_3 v03Params, ServerCallContext context) Sends a message (streaming).Convert_v0_3_To10RequestHandler.onResubscribeToTask(TaskIdParams_v0_3 v03Params, ServerCallContext context) Resubscribes to task updates (streaming).Convert_v0_3_To10RequestHandler.onSetTaskPushNotificationConfig(TaskPushNotificationConfig_v0_3 v03Config, ServerCallContext context) Sets (creates) a task push notification configuration. -
Uses of A2AError in org.a2aproject.sdk.extras.opentelemetry
Methods in org.a2aproject.sdk.extras.opentelemetry that throw A2AErrorModifier and TypeMethodDescriptionOpenTelemetryRequestHandlerDecorator.onCancelTask(CancelTaskParams params, ServerCallContext context) OpenTelemetryRequestHandlerDecorator.onCreateTaskPushNotificationConfig(TaskPushNotificationConfig params, ServerCallContext context) voidOpenTelemetryRequestHandlerDecorator.onDeleteTaskPushNotificationConfig(DeleteTaskPushNotificationConfigParams params, ServerCallContext context) OpenTelemetryRequestHandlerDecorator.onGetTask(TaskQueryParams params, ServerCallContext context) OpenTelemetryRequestHandlerDecorator.onGetTaskPushNotificationConfig(GetTaskPushNotificationConfigParams params, ServerCallContext context) OpenTelemetryRequestHandlerDecorator.onListTaskPushNotificationConfigs(ListTaskPushNotificationConfigsParams params, ServerCallContext context) OpenTelemetryRequestHandlerDecorator.onListTasks(ListTasksParams params, ServerCallContext context) OpenTelemetryRequestHandlerDecorator.onMessageSend(MessageSendParams params, ServerCallContext context) OpenTelemetryRequestHandlerDecorator.onMessageSendStream(MessageSendParams params, ServerCallContext context) OpenTelemetryRequestHandlerDecorator.onSubscribeToTask(TaskIdParams params, ServerCallContext context) voidOpenTelemetryRequestHandlerDecorator.validateRequestedTask(@Nullable String requestedTaskId) -
Uses of A2AError in org.a2aproject.sdk.extras.opentelemetry.it
Methods in org.a2aproject.sdk.extras.opentelemetry.it that throw A2AErrorModifier and TypeMethodDescriptionvoidSimpleAgentExecutor.cancel(RequestContext context, AgentEmitter emitter) voidSimpleAgentExecutor.execute(RequestContext context, AgentEmitter emitter) -
Uses of A2AError in org.a2aproject.sdk.extras.queuemanager.replicated.core
Methods in org.a2aproject.sdk.extras.queuemanager.replicated.core that return A2AErrorModifier and TypeMethodDescriptionReplicatedEventQueueItem.getErrorObject()Get the A2AError field (for JSON serialization).Methods in org.a2aproject.sdk.extras.queuemanager.replicated.core with parameters of type A2AErrorConstructors in org.a2aproject.sdk.extras.queuemanager.replicated.core with parameters of type A2AError -
Uses of A2AError in org.a2aproject.sdk.extras.queuemanager.replicated.tests.multiinstance.common
Methods in org.a2aproject.sdk.extras.queuemanager.replicated.tests.multiinstance.common that throw A2AErrorModifier and TypeMethodDescriptionvoidMultiInstanceReplicationAgentExecutor.cancel(RequestContext context, AgentEmitter agentEmitter) voidMultiInstanceReplicationAgentExecutor.execute(RequestContext context, AgentEmitter agentEmitter) -
Uses of A2AError in org.a2aproject.sdk.grpc.utils
Methods in org.a2aproject.sdk.grpc.utils with parameters of type A2AErrorModifier and TypeMethodDescriptionstatic StringJSONRPCUtils.toJsonRPCErrorResponse(@Nullable Object requestId, A2AError error) -
Uses of A2AError in org.a2aproject.sdk.jsonrpc.common.wrappers
Fields in org.a2aproject.sdk.jsonrpc.common.wrappers declared as A2AErrorModifier and TypeFieldDescriptionprotected A2AErrorA2AResponse.errorThe error object if the invocation failed.Methods in org.a2aproject.sdk.jsonrpc.common.wrappers that return A2AErrorConstructors in org.a2aproject.sdk.jsonrpc.common.wrappers with parameters of type A2AErrorModifierConstructorDescriptionA2AErrorResponse(Object id, A2AError error) Constructs a JSON-RPC error response with a request ID and error.A2AErrorResponse(String jsonrpc, Object id, Void result, A2AError error) Constructs a JSON-RPC error response with all fields.A2AErrorResponse(A2AError error) Constructs a JSON-RPC error response without a request ID.Constructs a JSON-RPC response.CancelTaskResponse(Object id, A2AError error) Constructs a CancelTaskResponse with an error.CancelTaskResponse(String jsonrpc, Object id, Task result, A2AError error) Constructs a CancelTaskResponse with full parameters.Constructs error response.CreateTaskPushNotificationConfigResponse(String jsonrpc, Object id, TaskPushNotificationConfig result, A2AError error) Constructs response with all parameters.Creates a new error DeleteTaskPushNotificationConfigResponse with default JSON-RPC version.DeleteTaskPushNotificationConfigResponse(String jsonrpc, Object id, Void result, A2AError error) Creates a new DeleteTaskPushNotificationConfigResponse with full JSON-RPC parameters.GetExtendedAgentCardResponse(Object id, A2AError error) Constructs error response.GetExtendedAgentCardResponse(String jsonrpc, Object id, AgentCard result, A2AError error) Constructs response with full parameters.GetTaskPushNotificationConfigResponse(Object id, A2AError error) Constructs error response.GetTaskPushNotificationConfigResponse(String jsonrpc, Object id, TaskPushNotificationConfig result, A2AError error) Constructs response with full parameters.GetTaskResponse(Object id, A2AError error) Constructs error response.GetTaskResponse(String jsonrpc, Object id, Task result, A2AError error) Constructs response with full parameters.Constructs error response.ListTaskPushNotificationConfigsResponse(String jsonrpc, Object id, ListTaskPushNotificationConfigsResult result, A2AError error) Constructs response with all parameters.ListTasksResponse(Object id, A2AError error) Constructs error response.ListTasksResponse(String jsonrpc, Object id, ListTasksResult result, A2AError error) Constructs response with all parameters.SendMessageResponse(Object id, A2AError error) Constructs error response.SendMessageResponse(String jsonrpc, Object id, EventKind result, A2AError error) Constructs response with all parameters.SendStreamingMessageResponse(Object id, A2AError error) Constructs error response.SendStreamingMessageResponse(String jsonrpc, Object id, StreamingEventKind result, A2AError error) Constructs response with all parameters. -
Uses of A2AError in org.a2aproject.sdk.server
Methods in org.a2aproject.sdk.server that return A2AErrorModifier and TypeMethodDescriptionJSONRPCException.getError()Returns the wrapped JSON-RPC error.Constructors in org.a2aproject.sdk.server with parameters of type A2AErrorModifierConstructorDescriptionJSONRPCException(A2AError error) Creates a JSONRPCException wrapping the specified error. -
Uses of A2AError in org.a2aproject.sdk.server.agentexecution
Methods in org.a2aproject.sdk.server.agentexecution that throw A2AErrorModifier and TypeMethodDescriptionvoidAgentExecutor.cancel(RequestContext context, AgentEmitter emitter) Cancels an ongoing agent execution.voidAgentExecutor.execute(RequestContext context, AgentEmitter emitter) Executes the agent's business logic for a message. -
Uses of A2AError in org.a2aproject.sdk.server.auth
Methods in org.a2aproject.sdk.server.auth that throw A2AErrorModifier and TypeMethodDescriptionbooleanTaskAuthorizationProvider.checkCreate(ServerCallContext context, TaskOperation operation) Check whether the current user is allowed to create a new task.booleanTaskAuthorizationProvider.checkRead(ServerCallContext context, String taskId, TaskOperation operation) Check whether the current user is allowed to read the given task.booleanTaskAuthorizationProvider.checkWrite(ServerCallContext context, String taskId, TaskOperation operation) Check whether the current user is allowed to write to the given task.booleanTaskAuthorizationProvider.isTaskRecorded(String taskId) Check whether the given task is already known to this provider.voidTaskAuthorizationProvider.recordOwnership(ServerCallContext context, String taskId, TaskOperation operation) Record that the current user owns the given task. -
Uses of A2AError in org.a2aproject.sdk.server.requesthandlers
Methods in org.a2aproject.sdk.server.requesthandlers that throw A2AErrorModifier and TypeMethodDescriptionAuthorizationRequestHandlerDecorator.onCancelTask(CancelTaskParams params, ServerCallContext context) DefaultRequestHandler.onCancelTask(CancelTaskParams params, ServerCallContext context) RequestHandler.onCancelTask(CancelTaskParams params, ServerCallContext context) AuthorizationRequestHandlerDecorator.onCreateTaskPushNotificationConfig(TaskPushNotificationConfig params, ServerCallContext context) DefaultRequestHandler.onCreateTaskPushNotificationConfig(TaskPushNotificationConfig params, ServerCallContext context) RequestHandler.onCreateTaskPushNotificationConfig(TaskPushNotificationConfig params, ServerCallContext context) voidAuthorizationRequestHandlerDecorator.onDeleteTaskPushNotificationConfig(DeleteTaskPushNotificationConfigParams params, ServerCallContext context) voidRequestHandler.onDeleteTaskPushNotificationConfig(DeleteTaskPushNotificationConfigParams params, ServerCallContext context) AuthorizationRequestHandlerDecorator.onGetTask(TaskQueryParams params, ServerCallContext context) DefaultRequestHandler.onGetTask(TaskQueryParams params, ServerCallContext context) RequestHandler.onGetTask(TaskQueryParams params, ServerCallContext context) AuthorizationRequestHandlerDecorator.onGetTaskPushNotificationConfig(GetTaskPushNotificationConfigParams params, ServerCallContext context) DefaultRequestHandler.onGetTaskPushNotificationConfig(GetTaskPushNotificationConfigParams params, ServerCallContext context) RequestHandler.onGetTaskPushNotificationConfig(GetTaskPushNotificationConfigParams params, ServerCallContext context) AuthorizationRequestHandlerDecorator.onListTaskPushNotificationConfigs(ListTaskPushNotificationConfigsParams params, ServerCallContext context) DefaultRequestHandler.onListTaskPushNotificationConfigs(ListTaskPushNotificationConfigsParams params, ServerCallContext context) RequestHandler.onListTaskPushNotificationConfigs(ListTaskPushNotificationConfigsParams params, ServerCallContext context) AuthorizationRequestHandlerDecorator.onListTasks(ListTasksParams params, ServerCallContext context) DefaultRequestHandler.onListTasks(ListTasksParams params, ServerCallContext context) RequestHandler.onListTasks(ListTasksParams params, ServerCallContext context) AuthorizationRequestHandlerDecorator.onMessageSend(MessageSendParams params, ServerCallContext context) DefaultRequestHandler.onMessageSend(MessageSendParams params, ServerCallContext context) RequestHandler.onMessageSend(MessageSendParams params, ServerCallContext context) AuthorizationRequestHandlerDecorator.onMessageSendStream(MessageSendParams params, ServerCallContext context) DefaultRequestHandler.onMessageSendStream(MessageSendParams params, ServerCallContext context) RequestHandler.onMessageSendStream(MessageSendParams params, ServerCallContext context) AuthorizationRequestHandlerDecorator.onSubscribeToTask(TaskIdParams params, ServerCallContext context) DefaultRequestHandler.onSubscribeToTask(TaskIdParams params, ServerCallContext context) RequestHandler.onSubscribeToTask(TaskIdParams params, ServerCallContext context) voidAuthorizationRequestHandlerDecorator.validateRequestedTask(@Nullable String requestedTaskId) voidDefaultRequestHandler.validateRequestedTask(@Nullable String requestedTaskId) voidRequestHandler.validateRequestedTask(@Nullable String requestedTaskId) -
Uses of A2AError in org.a2aproject.sdk.server.tasks
Methods in org.a2aproject.sdk.server.tasks with parameters of type A2AErrorModifier and TypeMethodDescriptionvoidEnqueues an A2A error event which will automatically transition the task to FAILED.Methods in org.a2aproject.sdk.server.tasks that throw A2AErrorModifier and TypeMethodDescriptionResultAggregator.consumeAndBreakOnInterrupt(EventConsumer consumer, boolean blocking) -
Uses of A2AError in org.a2aproject.sdk.spec
Subclasses of A2AError in org.a2aproject.sdk.specModifier and TypeClassDescriptionclassRepresents a protocol-level error in the A2A Protocol.classA2A Protocol error indicating incompatibility between requested content types and agent capabilities.classA2A Protocol error indicating that the agent does not have an authenticated extended card configured.classA2A Protocol error indicating that a client requested use of an extension marked as required but did not declare support for it.classJSON-RPC error indicating an internal error occurred on the server.classA2A Protocol error indicating that an agent returned a response not conforming to protocol specifications.classJSON-RPC error indicating that method parameters are invalid or missing required fields.classJSON-RPC error indicating that the request payload is not a valid JSON-RPC Request object.classJSON-RPC error indicating that the server received invalid JSON that could not be parsed.classJSON-RPC error indicating that the requested method does not exist or is not available.classA2A Protocol error indicating that the agent does not support push notifications.classA2A Protocol error indicating that a task cannot be canceled in its current state.classA2A Protocol error indicating that the requested task ID does not exist.classA2A Protocol error indicating that the requested operation is not supported by the agent.classA2A Protocol error indicating that the A2A protocol version specified in the request is not supported by the agent. -
Uses of A2AError in org.a2aproject.sdk.transport.jsonrpc.handler
Methods in org.a2aproject.sdk.transport.jsonrpc.handler that throw A2AErrorModifier and TypeMethodDescriptionJSONRPCHandler.onSubscribeToTask(SubscribeToTaskRequest request, ServerCallContext context) Subscribes to task updates via a streaming connection. -
Uses of A2AError in org.a2aproject.sdk.transport.rest.handler
Methods in org.a2aproject.sdk.transport.rest.handler with parameters of type A2AErrorModifier and TypeMethodDescriptionRestHandler.createErrorResponse(A2AError error) Creates an HTTP error response from an A2A error.