MySQL 8.4.2
Source Code Documentation
|
This class implements the framework needed for the callback function that handles conditions that may arise during parsing via the parser service. More...
Public Member Functions | |
Plugin_error_handler (THD *thd, sql_condition_handler_function handle_error, void *state) | |
bool | handle_condition (THD *, uint sql_errno_u, const char *sqlstate, Sql_condition::enum_severity_level *, const char *msg) override |
Handle a sql condition. More... | |
const char * | get_message () |
~Plugin_error_handler () override | |
Private Attributes | |
THD * | m_thd |
const char * | m_message |
const sql_condition_handler_function | m_handle_error |
void * | m_state |
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 |
This class implements the framework needed for the callback function that handles conditions that may arise during parsing via the parser service.
|
inline |
|
inlineoverride |
|
inline |
|
inlineoverridevirtual |
Handle a sql condition.
This method can be implemented by a subclass to achieve any of the following:
This mechanism is similar to C++ try/throw/catch:
THD::push_internal_handler()
,my_error()
, which invokes my_message_sql()
,THD::pop_internal_handler()
.thd | the calling thread |
sql_errno | the error number for the condition raised. |
sqlstate | the SQLSTATE for the condition raised. |
level | the severity level for the condition raised. |
msg | the error message for the condition raised. |
Implements Internal_error_handler.
|
private |
|
private |
|
private |
|
private |