73
76
// TODO: kill this method. Too much to do with this branch.
74
77
// This is called through the ER(x) macro.
75
const char * error_message(drizzled::error_t err_index);
78
DRIZZLED_API const char * error_message(drizzled::error_t err_index);
77
80
// Adds the message to the global error dictionary.
78
81
void add_error_message(drizzled::error_t error_code, const std::string &error_name,
79
82
const std::string& message);
80
83
#define DRIZZLE_ADD_ERROR_MESSAGE(code, msg) add_error_message(code, STRINGIFY_ARG(code), msg)
82
void my_error(const std::string &ref, error_t nr, myf MyFlags= MYF(0));
83
void my_error(error_t nr, drizzled::Identifier::const_reference ref, myf MyFlags= MYF(0));
84
void my_error(error_t nr);
85
void my_error(error_t nr, myf MyFlags, ...);
85
DRIZZLED_API void my_error(const std::string &ref, error_t nr, myf MyFlags= MYF(0));
86
DRIZZLED_API void my_error(error_t nr, drizzled::Identifier::const_reference ref, myf MyFlags= MYF(0));
87
DRIZZLED_API void my_error(error_t nr);
88
DRIZZLED_API void my_error(error_t nr, myf MyFlags, ...);
86
89
void my_message(drizzled::error_t my_err, const char *str, myf MyFlags);
87
90
void my_printf_error(drizzled::error_t my_err, const char *format,