rasdaman complete source
rasql_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 Lesser 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 Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser 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 / rasdaman GmbH.
18 *
19 * For more information please see <http://www.rasdaman.org>
20 * or contact Peter Baumann via <baumann@rasdaman.com>.
21 /
22 
33 #ifndef _RASQL_ERROR_HH_
34 #define _RASQL_ERROR_HH_
35 
36 #ifdef __VISUALC__
37 #pragma warning( disable : 4290 )
38 #endif
39 
40 //@ManMemo: Module: {\bf raslib}
41 
42 /*@Doc:
43 
44  This class ...
45 */
46 
47 
49 #define ALLDONE -1
50 #define OK 0
51 #define NOQUERY 1
52 #define ERRORPARSINGCOMMANDLINE 2
53 #define ILLEGALOUTPUTTYPE 3
54 #define FILEINACCESSIBLE 4
55 #define UNABLETOCLAIMRESOURCEFORFILE 5
56 #define NOVALIDDOMAIN 6
57 #define MDDTYPEINVALID 7
58 #define FILESIZEMISMATCH 8
59 
60 class RasqlError // : public std::exception
61 {
62 public:
63 
65  RasqlError( unsigned int e );
66 
68  virtual ~RasqlError();
69 
71  virtual const char * what();
72 
73 private:
75  unsigned int errno;
76 };
77 
78 #endif // _RASQL_ERROR_HH_