--- /dev/null
+import builtins
+
+class MySQLError(Exception): ...
+class Warning(builtins.Warning, MySQLError): ...
+class Error(MySQLError): ...
+class InterfaceError(Error): ...
+class DatabaseError(Error): ...
+class DataError(DatabaseError): ...
+class OperationalError(DatabaseError): ...
+class IntegrityError(DatabaseError): ...
+class InternalError(DatabaseError): ...
+class ProgrammingError(DatabaseError): ...
+class NotSupportedError(DatabaseError): ...