rasdaman complete source
rasdl_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 /*************************************************************
24  *
25  *
26  * COMMENTS:
27  *
28  ************************************************************/
29 
30 #ifndef _RASQL_ERROR_HH_
31 #define _RASQL_ERROR_HH_
32 
33 #ifdef __VISUALC__
34 #pragma warning( disable : 4290 )
35 #endif
36 
37 //@ManMemo: Module: {\bf raslib}
38 
39 /*@Doc:
40 
41  This class ...
42 */
43 
44 
46 #define ALLDONE -1
47 #define OK 0
48 #define CANNOTALLOC 1
49 #define CANNOTWRITEHDR 2
50 #define NOCONNECTION 3
51 #define EMPTYTYPENAME 4
52 #define ILLEGALREADCOMBI 5
53 #define ODLFILEFAILED 6
54 #define ODLPARSEERROR 7
55 #define ILLEGALHHCOMBI 8
56 #define ILLEGALINSERTCOMBI 9
57 #define CMDLINE 10
58 
62 class RasdlError // : public std::exception
63 {
64 public:
65 
67  RasdlError( unsigned int e );
68 
70  virtual ~RasdlError();
71 
73  virtual const char * what();
74 
75 private:
77  unsigned int error_code;
78 };
79 
80 #endif // _RASQL_ERROR_HH_
RasdlError(unsigned int e)
constructor receiving an error number
virtual ~RasdlError()
destructor
virtual const char * what()
get an error description
Definition: rasdl_error.hh:62