rasdaman complete source
directql_error.hh
Go to the documentation of this file.
1 /*
2 * This file is part of rasdaman community.
3 *
4 * Rasdaman community is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * Rasdaman community is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with rasdaman community. If not, see <http://www.gnu.org/licenses/>.
16 *
17 * Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
18 rasdaman GmbH.
19 *
20 * For more information please see <http://www.rasdaman.org>
21 * or contact Peter Baumann via <baumann@rasdaman.com>.
22 /
23 
31 #ifndef _RASQL_ERROR_HH_
32 #define _RASQL_ERROR_HH_
33 
34 #ifdef __VISUALC__
35 #pragma warning( disable : 4290 )
36 #endif
37 
38 //@ManMemo: Module: {\bf raslib}
39 
40 /*@Doc:
41 
42  This class ...
43 */
44 
45 
47 #define ALLDONE -1
48 #define OK 0
49 #define NOQUERY 1
50 #define ERRORPARSINGCOMMANDLINE 2
51 #define ILLEGALOUTPUTTYPE 3
52 #define FILEINACCESSIBLE 4
53 #define UNABLETOCLAIMRESOURCEFORFILE 5
54 #define NOVALIDDOMAIN 6
55 #define MDDTYPEINVALID 7
56 #define FILESIZEMISMATCH 8
57 
58 class RasqlError // : public std::exception
59 {
60 public:
61 
63  RasqlError( unsigned int e );
64 
66  virtual ~RasqlError();
67 
69  virtual const char * what();
70 
71 private:
73  unsigned int errno;
74 };
75 
76 #endif // _RASQL_ERROR_HH_