rasdaman complete source
rasgeo_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 - 2011 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 
23 #ifndef _RASGEO_ERROR_HH_
24 #define _RASGEO_ERROR_HH_
25 
26 #ifdef __VISUALC__
27 #pragma warning( disable : 4290 )
28 #endif
29 
30 //@ManMemo: Module: {\bf raslib}
31 
32 /*@Doc:
33 
34  This class ...
35 */
36 
37 
39 #define ALLDONE -1
40 #define OK 0
41 #define NOCOLLNAME 1
42 #define INVALIDFLOAT 2
43 #define NOXMIN 3
44 #define NOXMAX 4
45 #define NOYMIN 5
46 #define NOYMAX 6
47 #define NORES 7
48 #define ERRORPARSINGCOMMANDLINE 8
49 #define INVALIDBBOX 9
50 #define INVALIDLEVEL 10
51 #define ILLEGALMAPTYPE 11
52 #define NOMAPTYPE 12
53 #define INVALIDTILEEDGE 13
54 #define ALLOCFAIL 14
55 #define NOTINSERTED 15
56 
57 class InitError // : public std::exception
58 {
59 public:
60 
62  InitError( unsigned int e );
63 
65  virtual ~InitError();
66 
68  virtual const char * what();
69 
70 private:
72  unsigned int errorCode;
73 };
74 
75 #endif // _RASGEO_ERROR_HH_
Definition: rasgeo_error.hh:57
virtual const char * what()
get an error description
virtual ~InitError()
destructor
InitError(unsigned int e)
constructor receiving an error number