2 from typing import NoReturn, Type
4 from .constants import ER as ER
6 class MySQLError(Exception): ...
7 class Warning(builtins.Warning, MySQLError): ...
8 class Error(MySQLError): ...
9 class InterfaceError(Error): ...
10 class DatabaseError(Error): ...
11 class DataError(DatabaseError): ...
12 class OperationalError(DatabaseError): ...
13 class IntegrityError(DatabaseError): ...
14 class InternalError(DatabaseError): ...
15 class ProgrammingError(DatabaseError): ...
16 class NotSupportedError(DatabaseError): ...
18 error_map: dict[int, Type[DatabaseError]]
20 def raise_mysql_exception(data) -> NoReturn: ...