~drizzle-developers/drizzle/elliott-release

« back to all changes in this revision

Viewing changes to drizzled/error.h

  • Committer: Patrick Crews
  • Date: 2011-02-01 20:33:06 UTC
  • mfrom: (1845.2.288 drizzle)
  • Revision ID: gleebix@gmail.com-20110201203306-mwq2rk0it81tlwxh
Merged Trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
 
20
 
20
21
#ifndef DRIZZLED_ERROR_H
21
22
#define DRIZZLED_ERROR_H
22
23
 
27
28
#include "drizzled/definitions.h"
28
29
#include "drizzled/identifier.h"
29
30
 
 
31
#include "drizzled/visibility.h"
 
32
 
30
33
namespace drizzled
31
34
{
32
35
 
72
75
 
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);
76
79
 
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)
81
84
 
82
 
void my_error(error_t nr, drizzled::Identifier::const_reference ref, myf MyFlags= MYF(0));
83
 
void my_error(error_t nr);
84
 
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, ...);
85
89
void my_message(drizzled::error_t my_err, const char *str, myf MyFlags);
86
90
void my_printf_error(drizzled::error_t my_err, const char *format,
87
91
                     myf MyFlags, ...)