Ask a question to get started
Enter to sendā¢Shift+Enter new line
Handle SQL execution errors specifically.
handle_sql_error( error: Exception, tool_name: str, sql_query: str, operation: str, logger_instance: Optional[logging.Logger] = None ) -> str
error
Exception
The SQL exception that occurred
tool_name
str
Name of the tool executing SQL
sql_query
The SQL query that failed (truncated for logging)
operation
Description of the operation
logger_instance
Optional[logging.Logger]
None
Specific logger to use