include/ErrorType.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2007 by www.databasecache.com                           *
00003  *   Contact: praba_tuty@databasecache.com                                 *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015   ***************************************************************************/
00016 #ifndef ERROR_TYPE_H
00017 #define ERROR_TYPE_H
00018 
00026 enum DbRetVal
00027 {
00028     OK               =  0, 
00029     ErrSysFatal      = -1, 
00030     ErrSysInit       = -2,
00031     ErrNoPrivilege   = -3,
00032     ErrSysInternal   = -4,
00033     ErrNotExists     = -5,
00034     ErrNoMemory      = -6,
00035     ErrNotFound      = -7,
00036     ErrAlready       = -8,
00037     ErrOS            = -9,
00038     ErrNotReady      = -10,
00039     ErrNotOpen       = -11,
00040     ErrNoResource    = -12,
00041     ErrBadRange      = -13,
00042     ErrBadCall       = -14,
00043     ErrLockTimeOut   = -15,
00044     ErrBadArg        = -16,
00045     ErrNotYet        = -17,
00046     ErrNoConnection  = -18,
00047     ErrSyntaxError   = -19,
00048     ErrInvalidExpr   = -20,
00049     ErrUnique        = -21,
00050     ErrNullViolation = -22,
00051     ErrPeerResponse  = -23,
00052     ErrPeerTimeOut   = -24,
00053     ErrPeerExecFailed= -25,
00054     ErrNoEffect      = -26,
00055     ErrNotCached     = -27,
00056     ErrSyntax        = -28,
00057     ErrNotPrepared   = -29,
00058 //  add new error type here
00059     ErrUnknown       = -98,
00060     ErrWarning       = -99,
00061     SplCase          = -100
00062 };
00063 #endif

Generated on Mon Jun 9 22:37:14 2008 for csql by  doxygen 1.4.7