using tree index
[csql.git] / include / ErrorType.h
blob4cc9a8060d9d180109f4150f4102e41e4cfb0e65
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/>
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 ErrNotEmpty = -30,
59 // add new error type here
60 ErrUnknown = -98,
61 ErrWarning = -99,
62 SplCase = -100
64 #endif