MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / handle_exception

Method handle_exception

lib/sqlalchemy/engine/cursor.py:1257–1265  ·  view source on GitHub ↗
(
        self,
        result: CursorResult[Any],
        dbapi_cursor: Optional[DBAPICursor],
        err: BaseException,
    )

Source from the content-addressed store, hash-verified

1255 result.cursor_strategy = _NO_CURSOR_DQL
1256
1257 def handle_exception(
1258 self,
1259 result: CursorResult[Any],
1260 dbapi_cursor: Optional[DBAPICursor],
1261 err: BaseException,
1262 ) -> NoReturn:
1263 result.connection._handle_dbapi_exception(
1264 err, None, None, dbapi_cursor, result.context
1265 )
1266
1267 def yield_per(
1268 self, result: CursorResult[Any], dbapi_cursor: DBAPICursor, num: int

Callers 3

fetchoneMethod · 0.95
fetchmanyMethod · 0.95
fetchallMethod · 0.95

Calls 1

Tested by

no test coverage detected