34
36
static const uint32_t NUM_ERRORS= 4;
35
enum enum_warning_level
36
{ WARN_LEVEL_NOTE, WARN_LEVEL_WARN, WARN_LEVEL_ERROR, WARN_LEVEL_END};
37
enum enum_warning_level {
44
drizzled::error_t code;
39
45
enum_warning_level level;
42
DRIZZLE_ERROR(Session *session, uint32_t code_arg, enum_warning_level level_arg,
44
:code(code_arg), level(level_arg)
48
DRIZZLE_ERROR(Session *session,
49
drizzled::error_t code_arg,
50
enum_warning_level level_arg,
51
const char *msg_arg) :
47
56
set_msg(session, msg_arg);
49
59
void set_msg(Session *session, const char *msg_arg);
52
62
DRIZZLE_ERROR *push_warning(Session *session, DRIZZLE_ERROR::enum_warning_level level,
53
uint32_t code, const char *msg);
63
drizzled::error_t code, const char *msg);
54
65
void push_warning_printf(Session *session, DRIZZLE_ERROR::enum_warning_level level,
55
uint32_t code, const char *format, ...);
66
drizzled::error_t code, const char *format, ...);
56
68
void drizzle_reset_errors(Session *session, bool force);
57
69
bool show_warnings(Session *session,
58
70
std::bitset<DRIZZLE_ERROR::NUM_ERRORS> &levels_to_show);