Public Member Functions | |
virtual bool | handle_error (drizzled::error_t sql_errno, const char *message, DRIZZLE_ERROR::enum_warning_level level, Session *session) |
Public Attributes | |
char | buff [DRIZZLE_ERRMSG_SIZE] |
An interceptor to hijack the text of the error message without setting an error in the thread. We need the text to present it in the form of a warning to the user.
Definition at line 405 of file storage_engine.cc.
bool drizzled::plugin::Ha_delete_table_error_handler::handle_error | ( | drizzled::error_t | sql_errno, |
const char * | message, | ||
DRIZZLE_ERROR::enum_warning_level | level, | ||
Session * | session | ||
) | [virtual] |
Handle an error condition. This method can be implemented by a subclass to achieve any of the following:
This mechanism is similar to C++ try/throw/catch:
Session::push_internal_handler()
,my_error()
, which invokes my_message_sql()
,Session::pop_internal_handler()
.sql_errno | the error number |
level | the error level |
session | the calling thread |
Implements drizzled::Internal_error_handler.
Definition at line 419 of file storage_engine.cc.