Search Results
https://dev.mysql.com/doc/connectors/en/connector-python-api-errors-integrityerror.html
The following example shows a duplicate key error raised as IntegrityError: cursor.execute("CREATE TABLE t1 (id int, PRIMARY KEY (id))") try: cursor.execute("INSERT INTO t1 (id) VALUES (1)") cursor.execute("INSERT INTO t1 (id) VALUES (1)") except ...
https://dev.mysql.com/doc/connectors/en/connector-python-api-errors-interfaceerror.html
This exception is raised for errors originating from Connector/Python itself, not related to the MySQL server.
https://dev.mysql.com/doc/connectors/en/connector-python-api-errors-operationalerror.html
This exception is raised for errors which are related to MySQL's operations. For example: too many connections; a host name could not be resolved; bad handshake; server is shutting down, communication errors.
https://dev.mysql.com/doc/connectors/en/connector-python-api-errors-poolerror.html
This exception is raised for connection pool errors. errors.PoolError is a subclass of errors.Error. ...
https://dev.mysql.com/doc/connector-python/en/connector-python-api-errors-databaseerror.html
This exception is the default for any MySQL error which does not fit the other exceptions.
https://dev.mysql.com/doc/connector-python/en/connector-python-api-errors-integrityerror.html
The following example shows a duplicate key error raised as IntegrityError: cursor.execute("CREATE TABLE t1 (id int, PRIMARY KEY (id))") try: cursor.execute("INSERT INTO t1 (id) VALUES (1)") cursor.execute("INSERT INTO t1 (id) VALUES (1)") except ...
https://dev.mysql.com/doc/connector-python/en/connector-python-api-errors-interfaceerror.html
This exception is raised for errors originating from Connector/Python itself, not related to the MySQL server.
https://dev.mysql.com/doc/connector-python/en/connector-python-api-errors-operationalerror.html
This exception is raised for errors which are related to MySQL's operations. For example: too many connections; a host name could not be resolved; bad handshake; server is shutting down, communication errors.
https://dev.mysql.com/doc/connector-python/en/connector-python-api-errors-poolerror.html
This exception is raised for connection pool errors. errors.PoolError is a subclass of errors.Error. ...
https://dev.mysql.com/doc/internals/en/error-injection.html
Note: The ERROR_INJECT framework has been removed in an early 6.0 version. The error injection method is based on the DBUG framework just like the Dbug Sleep method. In the code you can use the following macros: ERROR_INJECT_ACTION(keyword,action) ...This means each of them will never execute twice within one SQL ...