windows porting
[csql.git] / include / ErrorType.h
blob32fbfcff56dcf3992457ef024080d31c2e63aa94
1 /***************************************************************************
2 * *
3 * Copyright (C) Lakshya Solutions Ltd. All rights reserved. *
4 * *
5 ***************************************************************************/
7 #ifndef ERROR_TYPE_H
8 #define ERROR_TYPE_H
9 /**
10 * @class DbRetVal
11 * Database Return Value.
12 * This contains all the error codes returned by all the exposed APIs<br>
13 * <br/>
17 enum DbRetVal
19 OK = 0, /**< OK. No error. Operation succeded. */
20 ErrSysFatal = -1,
21 ErrSysInit = -2,
22 ErrNoPrivilege = -3,
23 ErrSysInternal = -4,
24 ErrNotExists = -5,
25 ErrNoMemory = -6,
26 ErrNotFound = -7,
27 ErrAlready = -8,
28 ErrOS = -9,
29 ErrNotReady = -10,
30 ErrNotOpen = -11,
31 ErrNoResource = -12,
32 ErrBadRange = -13,
33 ErrBadCall = -14,
34 ErrLockTimeOut = -15,
35 ErrBadArg = -16,
36 ErrNotYet = -17,
37 ErrNoConnection = -18,
38 ErrSyntaxError = -19,
39 ErrInvalidExpr = -20,
40 ErrUnique = -21,
41 ErrNullViolation = -22,
42 ErrPeerResponse = -23,
43 ErrPeerTimeOut = -24,
44 ErrPeerExecFailed= -25,
45 ErrNoEffect = -26,
46 ErrNotCached = -27,
47 ErrSyntax = -28,
48 ErrNotPrepared = -29,
49 ErrNotEmpty = -30,
50 ErrReadOnlyCache = -31,
51 ErrNoPeer = -32,
52 ErrAutoIncUpdate = -33,
53 ErrForeignKeyInsert=-34,
54 ErrForeignKeyDelete=-35,
55 ErrNullValues =-36, //used in evaluate on null values
56 ErrDefaultValue =-37, //Added here to check Default value
57 ErrLoadingOn = -38,
58 ErrNote = -97, // add new error type here
59 ErrUnknown = -98,
60 ErrWarning = -99,
61 SplCase = -100
63 #endif