rasdaman complete source
import_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 _IMPORT_ERROR_HH_
24 #define _IMPORT_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 CREATEANDNOCREATE 1
42 #define NOVALIDDOMAIN 2
43 #define FILEINACCESSIBLE 3
44 #define FILENAMETOOLONG 4
45 #define NOCREATECREATECOLL 5
46 #define NOCOLLTYPE 6
47 #define COLLOIDANDCOLLNAME 7
48 #define CREATECOLLWITHOID 8
49 #define CREATEMDDWITHOID 9
50 #define INVALIDTILESIZE 10
51 #define DOMAINDATAMISMATCH 11
52 #define MDDDOMAINNOTSPECIFIED 12
53 #define FILENAMENOTSPECIFIED 13
54 #define NOCOLLNAMENOCOLLOID 14
55 #define MDDTYPEINVALID 15
56 #define NOBASETYPE 16
57 #define EXCEPTIONCREATECOLL 17
58 // removed, too general: #define EXCEPTIONADMIN 18
59 #define COLLECTIONINACCESSIBLE 19
60 #define MDDINACCESSIBLE 20
61 #define OIDINVALID 21
62 #define MDDOIDANDCOLL 22
63 #define ARGUMENTSMISSING 23
64 #define ARGUMENTSINCOMPLETE 24
65 #define EXCEPTIONEXECUTEQUERY 25
66 #define NOQUERY 26
67 #define CONVERSIONNOTSUPPORTED 27
68 #define CONVERSIONEXCEPTION 28
69 #define UNKNOWNTILINGTYPE 29
70 #define TILINGPARAMETERSMISSING 30
71 #define TILINGPATAMETERSINCORRECT 31
72 #define CONVERSIONTYPENOTABASETYPE 32
73 #define CONVERSIONRETURNEDWRONGTYPE 33
74 #define POLYGONCREATIONFAILED 34
75 #define OVERLAYDOMAINSDONOTMATCH 35
76 #define OVERLAYTYPESIZESDONOTMATCH 36
77 #define POLYGONDOMAINTOOLARGE 37
78 #define NOCOLLNAMEDEFINED 38
79 #define NOMDDTYPEDEFINED 39
80 #define MDDTYPEOFGMARRAYNOTINITIALISED 40
81 #define SCALEDOMAINISNOTCORRECT 41
82 #define SCALELEVELSINCORRECT 42
83 #define GMARRAYSARENOTEQUAL 43
84 #define UNKNOWNSCALEFUNCTION 44
85 #define UNABLETOCLAIMRESOURCEFORFILE 45
86 #define ERRORPARSINGCOMMANDLINE 46
87 #define TILINGTYPENOTALLOWED 47
88 #define LAYERSNOTCORRECT 48
89 #define TOOMANYLAYERS 49
90 #define OVERLAYDOMAINDOESNOTMATCH 50
91 #define TILEDUPDATEANDFILE 51
92 #define NOCOMPAREDESTINATION 52
93 #define CONVERSIONTYPEMISSING 53
94 #define MDDOIDMISSING 54
95 #define INVALIDALIGN 55
96 #define SIGNALCAUGHT 56
97 #define DOMAINNOTTWODIMENSIONAL 57
98 #define INVALIDSAMPLINGMETHOD 58
99 #define UNKNOWNBASETYPE 59
100 #define SCALEDOMAINPOSSIBLEUNDERFLOW 60
101 #define INVALIDSCALENAME 61
102 #define INVALIDSCALEFACTOR 62
103 #define INVALIDCOLLNAMECHAR 63
104 #define INVALIDFLOAT 64
105 #define INVALIDRESOLUTION 65
106 #define INVALIDDATAFORMAT 66
107 #define INVALIDSKIP 67
108 #define INVALIDHEX 68
109 #define INVALIDBUFSIZ 69
110 #define LAYERLISTNOTDEFINED 70
111 #define TOOMANYWILDCARDS 71
112 #define NOWILDCARD 72
113 #define TKLAYERMISMATCH 73
114 #define UNSUPPORTEDTYPESIZE 74
115 #define ILLEGALIMPORTTYPE 75
116 #define CANNOTACCESSCOLL 76
117 #define CANNOTUPDATECOLL 77
118 #define BLOCKEXTENTOFLO 78
119 #define DOMAINRETRIEVAL 79
120 #define USERNOTSPECIFIED 80
121 #define PASSWDNOTSPECIFIED 81
122 #define COORDMISSING 82
123 #define RESMISSING 83
124 #define TIFF_FILENAME 84
125 #define TIFF_TAGS 85
126 #define TIFF_BITMAPSONLY 86
127 #define TIFF_OUTPUTBYTES 87
128 #define BASETYPEMISMATCH 88
129 #define DOMAINEXTENTMISMATCH 89
130 
131 class ImportError // : public std::exception
132 {
133 public:
134 
136  ImportError( unsigned int e );
137 
139  virtual ~ImportError();
140 
142  virtual const char * what();
143 
144 private:
146  unsigned int importErrno;
147 };
148 
149 #endif // _IMPORT_ERROR_HH_
virtual const char * what()
get an error description
ImportError(unsigned int e)
constructor receiving an error number
virtual ~ImportError()
destructor
Definition: import_error.hh:131