mysql-native v1.2.0

API Reference Home: [This Version] [Latest Version] [Other Versions]


Module mysql.exceptions

Exceptions defined by mysql-native.

Classes

NameDescription
MYX An exception type to distinguish exceptions thrown by this package.
MYXDataPending This exception is no longer used by mysql-native and will be removed in an upcoming release.
MYXInvalidatedRange Thrown when attempting to use a range that's been invalidated. In particular, when using a ResultRange after a new command has been issued on the same connection.
MYXNoResultRecieved Thrown when the executed query, unexpectedly, did not produce a result set. Use the exec functions, not query (query, queryRow, etc.), for commands that don't produce result sets (such as INSERT).
MYXNotPrepared Thrown when attempting to use a prepared statement which had already been released.
MYXProtocol Received invalid data from the server which violates the MySQL network protocol. (Quite possibly mysql-native's fault. Please file an issue if you receive this.)
MYXReceived The server sent back a MySQL error code and message. If the server is 4.1+, there should also be an ANSI/ODBC-standard SQLSTATE error code.
MYXResultRecieved Thrown when a result set was returned unexpectedly. Use the query functions (query, queryRow, etc.), not exec for commands that return result sets (such as SELECT), even if the result set has zero elements.
MYXWrongFunction Common base class of MYXResultRecieved and MYXNoResultRecieved.

Aliases

NameTypeDescription
MySQLDataPendingException MYXDataPending
MySQLException MYX
MySQLInvalidatedRangeException MYXInvalidatedRange
MySQLNoResultRecievedException MYXNoResultRecieved
MySQLNotPreparedException MYXNotPrepared
MySQLProtocolException MYXProtocol
MySQLReceivedException MYXReceived
MySQLResultRecievedException MYXResultRecieved
MySQLWrongFunctionException MYXWrongFunction