~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/error.h

  • Committer: Brian Aker
  • Date: 2010-01-27 18:58:12 UTC
  • Revision ID: brian@gaz-20100127185812-n62n0vwetnx8jrjy
Remove dead code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 
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 MySQL
 
4
 *  Copyright (C) 2008 Sun Microsystems
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
8
 
 *  the Free Software Foundation; either version 2 of the License, or
9
 
 *  (at your option) any later version.
 
8
 *  the Free Software Foundation; version 2 of the License.
10
9
 *
11
10
 *  This program is distributed in the hope that it will be useful,
12
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
18
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
18
 */
20
19
 
21
 
#ifndef _drizzled_error_h
22
 
#define _drizzled_error_h
23
 
 
24
 
#include <libdrizzle/gettext.h>
 
20
#ifndef DRIZZLED_ERROR_H
 
21
#define DRIZZLED_ERROR_H
 
22
 
 
23
#include "drizzled/my_error.h"
 
24
 
 
25
#ifdef  __cplusplus
 
26
extern "C" {
 
27
#endif
 
28
 
 
29
bool init_errmessage(void);
 
30
const char * error_message(unsigned int err_index);
25
31
 
26
32
enum drizzled_error_code {
27
33
  ER_ERROR_FIRST= 1000,
28
 
  ER_HASHCHK= 1000,
29
 
  ER_NISAMCHK,
 
34
  ER_UNUSED1000= ER_ERROR_FIRST,
 
35
  ER_UNUSED1001,
30
36
  ER_NO,
31
37
  ER_YES,
32
38
  ER_CANT_CREATE_FILE,
149
155
  ER_NULL_COLUMN_IN_INDEX,
150
156
  ER_CANT_FIND_UDF,
151
157
  ER_CANT_INITIALIZE_UDF,
152
 
  ER_UDF_NO_PATHS,
153
 
  ER_UDF_EXISTS,
 
158
  ER_PLUGIN_NO_PATHS,
 
159
  ER_PLUGIN_EXISTS,
154
160
  ER_CANT_OPEN_LIBRARY,
155
161
  ER_CANT_FIND_DL_ENTRY,
156
162
  ER_FUNCTION_NOT_DEFINED,
371
377
  ER_FPARSER_ERROR_IN_PARAMETER,
372
378
  ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER,
373
379
  ER_VIEW_NO_EXPLAIN,
374
 
  ER_FRM_UNKNOWN_TYPE,
 
380
  ER_UNUSED1346,
375
381
  ER_WRONG_OBJECT,
376
382
  ER_NONUPDATEABLE_COLUMN,
377
383
  ER_VIEW_SELECT_DERIVED,
461
467
  ER_FOREIGN_DATA_STRING_INVALID,
462
468
  ER_CANT_CREATE_FEDERATED_TABLE,
463
469
  ER_TRG_IN_WRONG_SCHEMA,
464
 
  ER_STACK_OVERRUN_NEED_MORE,
 
470
  ER_STACK_OVERRUN_NEED_MORE=1436, // TODO: Test case looks for this int
465
471
  ER_TOO_LONG_BODY,
466
472
  ER_WARN_CANT_DROP_DEFAULT_KEYCACHE,
467
473
  ER_TOO_BIG_DISPLAYWIDTH,
607
613
  ER_UNSUPORTED_LOG_ENGINE,
608
614
  ER_BAD_LOG_STATEMENT,
609
615
  ER_CANT_RENAME_LOG_TABLE,
610
 
  ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT,
 
616
  ER_WRONG_PARAMCOUNT_TO_FUNCTION,
611
617
  ER_WRONG_PARAMETERS_TO_NATIVE_FCT,
612
618
  ER_WRONG_PARAMETERS_TO_STORED_FCT,
613
619
  ER_NATIVE_FCT_NAME_COLLISION,
698
704
  ER_BACKUP_LOG_WRITE_ERROR,
699
705
  ER_TABLESPACE_NOT_EMPTY,
700
706
  ER_BACKUP_TS_CHANGE,
701
 
  ER_ERROR_LAST= ER_BACKUP_TS_CHANGE
 
707
  ER_VCOL_BASED_ON_VCOL,
 
708
  ER_VIRTUAL_COLUMN_FUNCTION_IS_NOT_ALLOWED,
 
709
  ER_DATA_CONVERSION_ERROR_FOR_VIRTUAL_COLUMN,
 
710
  ER_PRIMARY_KEY_BASED_ON_VIRTUAL_COLUMN,
 
711
  ER_KEY_BASED_ON_GENERATED_VIRTUAL_COLUMN,
 
712
  ER_WRONG_FK_OPTION_FOR_VIRTUAL_COLUMN,
 
713
  ER_WARNING_NON_DEFAULT_VALUE_FOR_VIRTUAL_COLUMN,
 
714
  ER_UNSUPPORTED_ACTION_ON_VIRTUAL_COLUMN,
 
715
  ER_CONST_EXPR_IN_VCOL,
 
716
  ER_UNKNOWN_TEMPORAL_TYPE,
 
717
  ER_INVALID_STRING_FORMAT_FOR_DATE,
 
718
  ER_INVALID_STRING_FORMAT_FOR_TIME,
 
719
  ER_INVALID_UNIX_TIMESTAMP_VALUE,
 
720
  ER_INVALID_DATETIME_VALUE,
 
721
  ER_INVALID_NULL_ARGUMENT,
 
722
  ER_INVALID_NEGATIVE_ARGUMENT,
 
723
  ER_ARGUMENT_OUT_OF_RANGE,
 
724
  ER_INVALID_TIME_VALUE,
 
725
  ER_INVALID_ENUM_VALUE,
 
726
  ER_NO_PRIMARY_KEY_ON_REPLICATED_TABLE,
 
727
  ER_ERROR_LAST= ER_NO_PRIMARY_KEY_ON_REPLICATED_TABLE
702
728
};
703
729
 
 
730
#ifdef  __cplusplus
 
731
}
704
732
#endif
705
733
 
 
734
#endif /* DRIZZLED_ERROR_H */