mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 02:54:29 +08:00
Initial conversion to modern Python.
This commit is contained in:
@ -5,14 +5,14 @@ These classes are dictated by the DB API v2.0:
|
||||
http://www.python.org/topics/database/DatabaseAPI-2.0.html
|
||||
"""
|
||||
|
||||
from exceptions import Exception, StandardError
|
||||
from exceptions import Exception, StandardError, Warning
|
||||
|
||||
class MySQLError(StandardError):
|
||||
|
||||
"""Exception related to operation with MySQL."""
|
||||
|
||||
|
||||
class Warning(MySQLError):
|
||||
class Warning(Warning, MySQLError):
|
||||
|
||||
"""Exception raised for important warnings like data truncations
|
||||
while inserting, etc."""
|
||||
|
Reference in New Issue
Block a user