System documentation of the GNU Image-Finding Tool

GIFTExceptions.h
1 /* -*- mode: c++ -*-
2 */
3 /*
4 
5  GIFT, a flexible content based image retrieval system.
6  Copyright (C) 1998, 1999, 2000, 2001, 2002, CUI University of Geneva
7 
8  Copyright (C) 2003, 2004 Bayreuth University
9  2005 Bamberg University
10  This program is free software; you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation; either version 2 of the License, or
13  (at your option) any later version.
14 
15  This program is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with this program; if not, write to the Free Software
22  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 
24 */
25 #ifndef _GIFTEXCEPTIONS
26 #define _GIFTEXCEPTIONS
27 using namespace std;
28 
29 #include <iostream>
30 #include <fstream>
31 
46  virtual void dummy();
47  protected:
49  const char* mMessage;
51  bool mDestroy;
52  public:
54  const char* getMessage()const;
55 
57  GIFTException(const char* inMessage);
59  GIFTException(char* inMessage);
61  virtual ~GIFTException();
63  friend ostream& operator<<(ostream& outStream,
64  const GIFTException&);
65 };
66 
68 ostream& operator<<(ostream& outStream,
69  const GIFTException&);
70 
73  public:
74 
76  VENotFound(const char* inMessage);
78  friend ostream& operator<<(ostream& outStream,
79  const VENotFound& inException);
80 
81 };
82 
83 ostream& operator<<(ostream& outStream,
84  const VENotFound& inException);
85 
88  public:
89 
91  VEProgrammingMistake(const char* inMessage);
93  friend ostream& operator<<(ostream& outStream,
94  const VEProgrammingMistake& inException);
95 
96 };
97 
98 ostream& operator<<(ostream& outStream,
99  const VENotFound& inException);
100 
101 
107  public:
109  VEDoubleInsert(const char* inMessage);
110 
112  friend ostream& operator<<(ostream& outStream,
113  const VEDoubleInsert& inException);
114 
115 };
116 
117 ostream& operator<<(ostream& outStream,
118  const VEDoubleInsert& inException);
119 
120 
123  public:
125  VEBaseUnknown(const char* inMessage);
126 
127  friend ostream& operator<<(ostream& outStream,
128  const VEBaseUnknown& inException);
129 
130 };
131 
132 ostream& operator<<(ostream& outStream,
133  const VEBaseUnknown& inException);
134 
135 
138  public:
140  VEWrongAccessor(const char* inMessage);
141 
143  friend ostream& operator<<(ostream& outStream,
144  const VEWrongAccessor& inException);
145 
146 };
147 
148 ostream& operator<<(ostream& outStream,
149  const VEWrongAccessor& inException);
150 
151 
154  public:
156  VEWrongAlgorithm(const char* inMessage);
157 
159  friend ostream& operator<<(ostream& outStream,
160  const VEWrongAlgorithm& inException);
161 };
162 
163 ostream& operator<<(ostream& outStream,
164  const VEWrongAlgorithm& inException);
165 
168  public:
170  VEWrongBaseType(const char* inMessage);
171 
173  friend ostream& operator<<(ostream& outStream,
174  const VEWrongBaseType& inException);
175 };
176 
177 ostream& operator<<(ostream& outStream,
178  const VEWrongBaseType& inException);
179 
180 
183  public:
185  VEUnknownSession(const char* inMessage);
187  friend ostream& operator<<(ostream& outStream,
188  const VEUnknownSession& inException);
189 
190 };
193  public:
195  VEConfigurationError(const char* inMessage);
197  friend ostream& operator<<(ostream& outStream,
198  const VEConfigurationError& inException);
199 
200 };
201 
202 
203 ostream& operator<<(ostream& outStream,
204  const VEConfigurationError& inException);
205 
206 
207 
208 
209 #endif
i dunno (embarrassing), but it is quite late
Definition: GIFTExceptions.h:122
A base class for exceptions thrown by GIFT.
Definition: GIFTExceptions.h:39
a clear programming mistake in this code has been found
Definition: GIFTExceptions.h:87
A file or a hash element was not found.
Definition: GIFTExceptions.h:72
The the algorithm cannot be used with the collection chosen.
Definition: GIFTExceptions.h:153
An element which is considered bein only once in a set was inserted another time. ...
Definition: GIFTExceptions.h:106
The accessor does not fit the chosen algorithm.
Definition: GIFTExceptions.h:137
The the algorithm cannot be used with the collection chosen.
Definition: GIFTExceptions.h:167
const char * mMessage
The exception message.
Definition: GIFTExceptions.h:49
The session ID is unknown.
Definition: GIFTExceptions.h:182
error in configuration, e.g.
Definition: GIFTExceptions.h:192
bool mDestroy
will the message be killed?
Definition: GIFTExceptions.h:51

Need for discussion? Want to contribute? Contact
help-gift@gnu.org Generated using Doxygen