mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 15:48:29 +00:00
Address review comments from João: - Add TaskInfo dataclass for enhanced task management with status tracking - Add ServerConfig dataclass for improved server configuration management - Add custom exception classes (A2AServerError, TransportError, ExecutionError) - Refactor code to use modular components for better maintainability - Update output conversion to handle JSON data types properly - Improve error handling with granular exception types - All tests pass (30 passed, 6 skipped) Co-Authored-By: João <joao@crewai.com>
17 lines
326 B
Python
17 lines
326 B
Python
"""Custom exceptions for A2A integration."""
|
|
|
|
|
|
class A2AServerError(Exception):
|
|
"""Base exception for A2A server errors."""
|
|
pass
|
|
|
|
|
|
class TransportError(A2AServerError):
|
|
"""Error related to transport configuration."""
|
|
pass
|
|
|
|
|
|
class ExecutionError(A2AServerError):
|
|
"""Error during crew execution."""
|
|
pass
|