~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/error.cc

  • Committer: Brian Aker
  • Date: 2010-12-30 16:49:02 UTC
  • mfrom: (2040.2.3 clean)
  • Revision ID: brian@tangent.org-20101230164902-gi4cs3vxdunyds54
Rollup of assert(), etc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
       ...      variable list
97
97
*/
98
98
 
 
99
void my_error(drizzled_error_code nr)
 
100
{
 
101
  my_error(nr, MYF(0));
 
102
}
 
103
 
99
104
void my_error(int nr, myf MyFlags, ...)
100
105
{
101
106
  std::string format;
513
518
  ADD_ERROR_MESSAGE(ER_INVALID_BOOLEAN_VALUE, N_("Received an invalid BOOLEAN value '%s'."));
514
519
  ADD_ERROR_MESSAGE(ER_INVALID_CAST_TO_BOOLEAN, N_("Invalid cast to BOOLEAN: '%s'."));
515
520
 
 
521
  // ASSERT Message
 
522
  ADD_ERROR_MESSAGE(ER_ASSERT, N_("Assertion '%s' failed."));
 
523
  ADD_ERROR_MESSAGE(ER_ASSERT_NULL, N_("Assertion '%s' failed, the result was NULL."));
 
524
 
516
525
  // Some old error values use the same strings as some new error values.
517
526
  ADD_ERROR_MESSAGE(EE_FILENOTFOUND, find(ER_FILE_NOT_FOUND));
518
527
  ADD_ERROR_MESSAGE(EE_CANTCREATEFILE, find(ER_CANT_CREATE_FILE));