MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / DatabaseToolError

Class DatabaseToolError

web/pgadmin/llm/tools/database.py:59–65  ·  view source on GitHub ↗

Exception raised when a database tool operation fails.

Source from the content-addressed store, hash-verified

57
58
59class DatabaseToolError(Exception):
60 """Exception raised when a database tool operation fails."""
61
62 def __init__(self, message: str, code: Optional[str] = None):
63 self.message = message
64 self.code = code
65 super().__init__(message)
66
67
68def _get_connection(sid: int, did: int, conn_id: str):

Callers 8

_get_connectionFunction · 0.85
_validate_readonly_queryFunction · 0.85
_execute_readonly_queryFunction · 0.85
execute_readonly_queryFunction · 0.85
get_database_schemaFunction · 0.85
get_table_columnsFunction · 0.85
get_table_infoFunction · 0.85
execute_toolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected