1974906 show tables command dumps core when csqlserver is not runnin
[csql.git] / include / ErrorType.h
blobf9ec6f26e32724b332fa1bf93bbe4483f90f9764
1 /***************************************************************************
2 * Copyright (C) 2007 by www.databasecache.com *
3 * Contact: praba_tuty@databasecache.com *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 ***************************************************************************/
16 #ifndef ERROR_TYPE_H
17 #define ERROR_TYPE_H
18 /**
19 * @class DbRetVal
20 * Database Return Value.
21 * This contains all the error codes returned by all the exposed APIs<br>
22 * <br/>
23 * @author Prabakaran Thirumalai
26 enum DbRetVal
28 OK = 0, /**< OK. No error. Operation succeded. */
29 ErrSysFatal = -1,
30 ErrSysInit = -2,
31 ErrNoPrivilege = -3,
32 ErrSysInternal = -4,
33 ErrNotExists = -5,
34 ErrNoMemory = -6,
35 ErrNotFound = -7,
36 ErrAlready = -8,
37 ErrOS = -9,
38 ErrNotReady = -10,
39 ErrNotOpen = -11,
40 ErrNoResource = -12,
41 ErrBadRange = -13,
42 ErrBadCall = -14,
43 ErrLockTimeOut = -15,
44 ErrBadArg = -16,
45 ErrNotYet = -17,
46 ErrNoConnection = -18,
47 ErrSyntaxError = -19,
48 ErrInvalidExpr = -20,
49 ErrUnique = -21,
50 ErrNullViolation = -22,
51 ErrPeerResponse = -23,
52 ErrPeerTimeOut = -24,
53 ErrPeerExecFailed= -25,
54 ErrNoEffect = -26,
55 ErrNotCached = -27,
56 ErrSyntax = -28,
57 ErrNotPrepared = -29,
58 // add new error type here
59 ErrUnknown = -98,
60 ErrWarning = -99,
61 SplCase = -100
63 #endif