#include <internal_error_handler.h>
Public Member Functions | |
virtual bool | handle_error (drizzled::error_t sql_errno, const char *message, DRIZZLE_ERROR::enum_warning_level level, Session *session)=0 |
This class represents the interface for internal error handlers. Internal error handlers are exception handlers used by the server implementation.
Definition at line 33 of file internal_error_handler.h.
virtual bool drizzled::Internal_error_handler::handle_error | ( | drizzled::error_t | sql_errno, |
const char * | message, | ||
DRIZZLE_ERROR::enum_warning_level | level, | ||
Session * | session | ||
) | [pure 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 |
Implemented in drizzled::plugin::Ha_delete_table_error_handler.
Referenced by drizzled::Session::handle_error().