Drizzled Public API Documentation

drizzled::plugin::Ha_delete_table_error_handler Class Reference
Inheritance diagram for drizzled::plugin::Ha_delete_table_error_handler:
drizzled::Internal_error_handler

List of all members.

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]

Detailed Description

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.


Member Function Documentation

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:

  • mask an error internally, prevent exposing it to the user,
  • mask an error and throw another one instead. When this method returns true, the error condition is considered 'handled', and will not be propagated to upper layers. It is the responsability of the code installing an internal handler to then check for trapped conditions, and implement logic to recover from the anticipated conditions trapped during runtime.

This mechanism is similar to C++ try/throw/catch:

Parameters:
sql_errnothe error number
levelthe error level
sessionthe calling thread
Returns:
true if the error is handled

Implements drizzled::Internal_error_handler.

Definition at line 419 of file storage_engine.cc.


The documentation for this class was generated from the following file: