~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/error.h

fixed build warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems
 
4
 *  Copyright (C) 2008 Sun Microsystems, Inc.
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
23
23
#include <string>
24
24
#include <boost/unordered_map.hpp>
25
25
 
 
26
#include "drizzled/error_t.h"
26
27
#include "drizzled/definitions.h"
 
28
#include "drizzled/identifier.h"
27
29
 
28
30
namespace drizzled
29
31
{
77
79
                       const std::string& message);
78
80
#define DRIZZLE_ADD_ERROR_MESSAGE(code, msg) add_error_message(code, STRINGIFY_ARG(code), msg)
79
81
 
80
 
void my_error(int nr, myf MyFlags, ...);
 
82
void my_error(error_t nr, drizzled::Identifier::const_reference ref);
 
83
void my_error(error_t nr);
 
84
void my_error(error_t nr, myf MyFlags, ...);
81
85
void my_message(uint32_t my_err, const char *str, myf MyFlags);
82
86
void my_printf_error(uint32_t my_err, const char *format,
83
87
                     myf MyFlags, ...)