Class: A2A::TaskNotFoundError
- Inherits:
-
JSONRPC::Error
- Object
- JSONRPC::Error
- A2A::TaskNotFoundError
- Defined in:
- lib/a2a/types/task_not_found_error.rb
Overview
Error for missing tasks (-32001)
Raised when the specified task ID does not correspond to an existing or active task. It might be invalid, expired, or already completed and purged.
Instance Method Summary collapse
-
#initialize(message = 'Task not found.', data: nil, request_id: nil) ⇒ TaskNotFoundError
constructor
Creates a new Task Not Found Error with code -32001.
Constructor Details
#initialize(message = 'Task not found.', data: nil, request_id: nil) ⇒ TaskNotFoundError
Creates a new Task Not Found Error with code -32001
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/a2a/types/task_not_found_error.rb', line 29 def initialize( = 'Task not found.', data: nil, request_id: nil ) super( , code: ErrorCodes::TASK_NOT_FOUND, data:, request_id: ) end |