mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 15:48:29 +00:00
feat: Add FeedbackProcessingError for feedback handling
- Add custom exception for feedback processing errors - Add proper error inheritance and docstrings - Make exception importable via __init__.py Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
5
src/crewai/utilities/exceptions/__init__.py
Normal file
5
src/crewai/utilities/exceptions/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
"""Exceptions module for CrewAI."""
|
||||
|
||||
from .feedback_processing_exception import FeedbackProcessingError
|
||||
|
||||
__all__ = ["FeedbackProcessingError"]
|
||||
@@ -0,0 +1,8 @@
|
||||
from typing import Optional
|
||||
|
||||
|
||||
class FeedbackProcessingError(Exception):
|
||||
"""Exception raised when feedback processing fails."""
|
||||
def __init__(self, message: str, original_error: Optional[Exception] = None):
|
||||
self.original_error = original_error
|
||||
super().__init__(message)
|
||||
Reference in New Issue
Block a user