File tree Expand file tree Collapse file tree
clickhouse_sqlalchemy/drivers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,10 +114,8 @@ def __init__(self, asynch):
114114 self .paramstyle = 'pyformat'
115115 self ._init_dbapi_attributes ()
116116
117- class Error (Exception ):
118- pass
119-
120117 def _init_dbapi_attributes (self ):
118+ self .Error = self .asynch .errors .ClickHouseException
121119 for name in (
122120 'ServerException' ,
123121 'UnexpectedPacketFromServerError' ,
Original file line number Diff line number Diff line change 99threadsafety = 2
1010# Python extended format codes, e.g. ...WHERE name=%(name)s
1111paramstyle = 'pyformat'
12-
13-
14- class Error (Exception ):
15- """
16- Exception that is the base class of all other error exceptions.
17- You can use this to catch all errors with one single except statement.
18- """
19- pass
12+ Error = Exception
2013
2114
2215def connect (* args , ** kwargs ):
Original file line number Diff line number Diff line change 1111threadsafety = 2
1212# Python extended format codes, e.g. ...WHERE name=%(name)s
1313paramstyle = 'pyformat'
14-
15-
16- class Error (Exception ):
17- """
18- Exception that is the base class of all other error exceptions.
19- You can use this to catch all errors with one single except statement.
20- """
21- pass
14+ Error = DatabaseException
2215
2316
2417def connect (* args , ** kwargs ):
You can’t perform that action at this time.
0 commit comments