~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/error.h

  • Committer: Monty Taylor
  • Date: 2011-01-26 19:15:55 UTC
  • mto: This revision was merged to the branch mainline in revision 2126.
  • Revision ID: mordred@inaugust.com-20110126191555-nq5nnzyscvngsip2
Turns on -fvisibility=hidden by default. Symbols intended to be used by
plugins need to be marked with DRIZZLED_API.

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(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,
88
91
                     myf MyFlags, ...)