~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/error_message_handler.h

Merged plugin-registration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#define DRIZZLED_PLUGIN_ERRMSG_H
25
25
 
26
26
#include <stdarg.h>
 
27
#include <string>
27
28
 
28
29
class Error_message_handler
29
30
{
 
31
  std::string name;
30
32
public:
31
 
  Error_message_handler() {}
 
33
  Error_message_handler(std::string name_arg): name(name_arg) {}
 
34
  Error_message_handler(const char *name_arg): name(name_arg) {}
32
35
  virtual ~Error_message_handler() {}
33
36
 
 
37
  std::string getName() { return name; }
 
38
 
34
39
  virtual bool errmsg(Session *session, int priority,
35
40
                      const char *format, va_list ap)=0;
36
41
};