88
99class MySQLError (Exception ):
1010 """Exception related to operation with MySQL."""
11+
1112 __module__ = "MySQLdb"
1213
1314
1415class Warning (Warning , MySQLError ):
1516 """Exception raised for important warnings like data truncations
1617 while inserting, etc."""
18+
1719 __module__ = "MySQLdb"
1820
1921
2022class Error (MySQLError ):
2123 """Exception that is the base class of all other error exceptions
2224 (not Warning)."""
25+
2326 __module__ = "MySQLdb"
2427
2528
2629class InterfaceError (Error ):
2730 """Exception raised for errors that are related to the database
2831 interface rather than the database itself."""
32+
2933 __module__ = "MySQLdb"
3034
3135
3236class DatabaseError (Error ):
3337 """Exception raised for errors that are related to the
3438 database."""
39+
3540 __module__ = "MySQLdb"
3641
3742
3843class DataError (DatabaseError ):
3944 """Exception raised for errors that are due to problems with the
4045 processed data like division by zero, numeric value out of range,
4146 etc."""
47+
4248 __module__ = "MySQLdb"
4349
4450
@@ -48,27 +54,31 @@ class OperationalError(DatabaseError):
4854 e.g. an unexpected disconnect occurs, the data source name is not
4955 found, a transaction could not be processed, a memory allocation
5056 error occurred during processing, etc."""
57+
5158 __module__ = "MySQLdb"
5259
5360
5461class IntegrityError (DatabaseError ):
5562 """Exception raised when the relational integrity of the database
5663 is affected, e.g. a foreign key check fails, duplicate key,
5764 etc."""
65+
5866 __module__ = "MySQLdb"
5967
6068
6169class InternalError (DatabaseError ):
6270 """Exception raised when the database encounters an internal
6371 error, e.g. the cursor is not valid anymore, the transaction is
6472 out of sync, etc."""
73+
6574 __module__ = "MySQLdb"
6675
6776
6877class ProgrammingError (DatabaseError ):
6978 """Exception raised for programming errors, e.g. table not found
7079 or already exists, syntax error in the SQL statement, wrong number
7180 of parameters specified, etc."""
81+
7282 __module__ = "MySQLdb"
7383
7484
@@ -77,4 +87,5 @@ class NotSupportedError(DatabaseError):
7787 which is not supported by the database, e.g. requesting a
7888 .rollback() on a connection that does not support transaction or
7989 has transactions turned off."""
90+
8091 __module__ = "MySQLdb"
0 commit comments