class ToolError(Exception): """Raised when a tool encounters an error.""" def __init__(self, message): self.message = message