drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
drizzled/internal/errors.cc
1/* Copyright (C) 2000 MySQL AB
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; version 2 of the License.
6
7 This program is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 GNU General Public License for more details.
11
12 You should have received a copy of the GNU General Public License
13 along with this program; if not, write to the Free Software
14 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
15
16#include "mysys/mysys_priv.h"
17#include "mysys/mysys_err.h"
18#include <drizzled/gettext.h>
19
20/* Error message numbers in global map */
21const char * globerrs[GLOBERRS];
22
23void init_glob_errs()
24{
25 EE(EE_CANTCREATEFILE) = N_("Can't create/write to file '%s' (Errcode: %d)");
26 EE(EE_READ) = N_("Error reading file '%s' (Errcode: %d)");
27 EE(EE_WRITE) = N_("Error writing file '%s' (Errcode: %d)");
28 EE(EE_BADCLOSE) = N_("Error on close of '%s' (Errcode: %d)");
29 EE(EE_OUTOFMEMORY) = N_("Out of memory (Needed %u bytes)");
30 EE(EE_DELETE) = N_("Error on delete of '%s' (Errcode: %d)");
31 EE(EE_LINK) = N_("Error on rename of '%s' to '%s' (Errcode: %d)");
32 EE(EE_EOFERR) = N_("Unexpected eof found when reading file '%s' (Errcode: %d)");
33 EE(EE_CANTLOCK) = N_("Can't lock file (Errcode: %d)");
34 EE(EE_CANTUNLOCK) = N_("Can't unlock file (Errcode: %d)");
35 EE(EE_DIR) = N_("Can't read dir of '%s' (Errcode: %d)");
36 EE(EE_STAT) = N_("Can't get stat of '%s' (Errcode: %d)");
37 EE(EE_CANT_CHSIZE) = N_("Can't change size of file (Errcode: %d)");
38 EE(EE_CANT_OPEN_STREAM)= N_("Can't open stream from handle (Errcode: %d)");
39 EE(EE_GETWD) = N_("Can't get working dirctory (Errcode: %d)");
40 EE(EE_SETWD) = N_("Can't change dir to '%s' (Errcode: %d)");
41 EE(EE_LINK_WARNING) = N_("Warning: '%s' had %d links");
42 EE(EE_OPEN_WARNING) = N_("Warning: %d files and %d streams is left open\n");
43 EE(EE_DISK_FULL) = N_("Disk is full writing '%s'. Waiting for someone to free space...");
44 EE(EE_CANT_MKDIR) = N_("Can't create directory '%s' (Errcode: %d)");
45 EE(EE_UNKNOWN_CHARSET)= N_("Character set '%s' is not a compiled character set and is not specified in the %s file");
46 EE(EE_OUT_OF_FILERESOURCES)= N_("Out of resources when opening file '%s' (Errcode: %d)");
47 EE(EE_CANT_READLINK)= N_("Can't read value for symlink '%s' (Error %d)");
48 EE(EE_CANT_SYMLINK)= N_("Can't create symlink '%s' pointing at '%s' (Error %d)");
49 EE(EE_REALPATH)= N_("Error on realpath() on '%s' (Error %d)");
50 EE(EE_SYNC)= N_("Can't sync file '%s' to disk (Errcode: %d)");
51 EE(EE_UNKNOWN_COLLATION)= N_("Collation '%s' is not a compiled collation and is not specified in the %s file");
52 EE(EE_FILENOTFOUND) = N_("File '%s' not found (Errcode: %d)");
53 EE(EE_FILE_NOT_CLOSED) = N_("File '%s' (fileno: %d) was not closed");
54}