class PRException(Exception): pass class APIException(PRException): pass class APIConnectionError(APIException): pass class APITimeoutError(APIException): pass class APIResponseError(APIException): pass class ConfigurationError(PRException): pass class ToolExecutionError(PRException): def __init__(self, tool_name: str, message: str): self.tool_name = tool_name super().__init__(f"Error executing tool '{tool_name}': {message}") class FileSystemError(PRException): pass class SessionError(PRException): pass class ContextError(PRException): pass class ValidationError(PRException): pass