mysql.connector.locales package¶
Subpackages¶
Module contents¶
Translations
-
mysql.connector.locales.get_client_error(error, language='eng')[source]¶ Lookup client error
This function will lookup the client error message based on the given error and return the error message. If the error was not found, None will be returned.
- Error can be either an integer or a string. For example:
- error: 2000 error: CR_UNKNOWN_ERROR
The language attribute can be used to retrieve a localized message, when available.
Returns a string or None.