![]() |
MySQL 8.0.43
Source Code Documentation
|
Error handler that controls error reporting by plugin. More...
Public Member Functions | |
| Audit_error_handler (THD *thd, const char *warning_message, bool active=true) | |
| Construction. More... | |
| ~Audit_error_handler () override | |
| Destruction. More... | |
| virtual bool | handle ()=0 |
| Simplified custom handler. More... | |
| bool | handle_condition (THD *, uint sql_errno, const char *sqlstate, Sql_condition::enum_severity_level *, const char *msg) override |
| Error handler. More... | |
| virtual void | print_warning (const char *warn_msg, uint sql_errno, const char *sqlstate, const char *msg) |
| Warning print routine. More... | |
| int | get_result (int result) |
| Convert the result value returned from the audit api. More... | |
Private Member Functions | |
| Audit_error_handler (const Audit_error_handler &obj) | |
| Blocked copy constructor (private). More... | |
Private Attributes | |
| THD * | m_thd |
| Current thread data. More... | |
| const char * | m_warning_message |
| Warning message used when the error is rejected. More... | |
| bool | m_error_reported |
| Error has been reported. More... | |
| const bool | m_active |
| Handler has been activated. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Internal_error_handler | |
| Internal_error_handler () | |
| Internal_error_handler * | prev_internal_handler () const |
| virtual | ~Internal_error_handler ()=default |
Error handler that controls error reporting by plugin.
|
inlineprivate |
Blocked copy constructor (private).
|
inline |
Construction.
| thd | Current thread data. |
| warning_message | Warning message used when error has been suppressed. |
| active | Specifies whether the handler is active or not. Optional parameter (default is true). |
|
inlineoverride |
Destruction.
|
inline |
Convert the result value returned from the audit api.
| result | Result value received from the plugin function. |
|
pure virtual |
Simplified custom handler.
Implemented in Ignore_event_error_handler, and Ignore_command_start_error_handler.
|
inlineoverridevirtual |
Error handler.
Implements Internal_error_handler.
|
inlinevirtual |
Warning print routine.
Also prints the underlying error attributes if supplied.
| warn_msg | Warning message to be printed. |
| sql_errno | The error number of the underlying error |
| sqlstate | The SQL state of the underlying error. NULL if none |
| msg | The text of the underlying error. NULL if none |
Reimplemented in Ignore_event_error_handler, and Ignore_command_start_error_handler.
|
private |
Handler has been activated.
|
private |
Error has been reported.
|
private |
Current thread data.
|
private |
Warning message used when the error is rejected.