IDS peak genericC++ v1.17.0
Loading...
Searching...
No Matches
peak_exception.hpp
Go to the documentation of this file.
1
6
7#pragma once
8
9
11#include <stdexcept>
12
13
14namespace peak
15{
16namespace core
17{
18
23class Exception : public virtual peak::common::Exception
24{
25 using peak::common::Exception::Exception;
26};
27
33{
34 using Exception::Exception;
35};
36
42{
43 using Exception::Exception;
44};
45
51 : public Exception
53{
54public:
55 explicit BadAllocException(const std::string& what)
56 : peak::common::Exception(what)
57 , peak::core::Exception(what)
59 {}
60
61 explicit BadAllocException(const char* what)
62 : peak::common::Exception(what)
63 , peak::core::Exception(what)
65 {}
66
68 : peak::common::Exception(other)
69 , peak::core::Exception(other)
71 {}
72};
73
79 : public Exception
81{
82public:
83 explicit InternalErrorException(const std::string& what)
84 : peak::common::Exception(what)
85 , peak::core::Exception(what)
87 {}
88
89 explicit InternalErrorException(const char* what)
90 : peak::common::Exception(what)
91 , peak::core::Exception(what)
93 {}
94
100};
101
107{
108 using Exception::Exception;
109};
110
116 : public Exception
118{
119public:
120 explicit InvalidArgumentException(const std::string& what)
121 : peak::common::Exception(what)
122 , peak::core::Exception(what)
123 , peak::common::InvalidParameterException(what)
124 {}
125
126 explicit InvalidArgumentException(const char* what)
127 : peak::common::Exception(what)
128 , peak::core::Exception(what)
129 , peak::common::InvalidParameterException(what)
130 {}
131
133 : peak::common::Exception(other)
134 , peak::core::Exception(other)
135 , peak::common::InvalidParameterException(other)
136 {}
137};
138
144 : public Exception
146{
147public:
148 explicit InvalidCastException(const std::string& what)
149 : peak::common::Exception(what)
150 , peak::core::Exception(what)
152 {}
153
154 explicit InvalidCastException(const char* what)
155 : peak::common::Exception(what)
156 , peak::core::Exception(what)
158 {}
159
161 : peak::common::Exception(other)
162 , peak::core::Exception(other)
164 {}
165};
166
172{
173 using Exception::Exception;
174};
175
181{
182 using Exception::Exception;
183};
184
190{
191 using Exception::Exception;
192};
193
199{
200 using Exception::Exception;
201};
202
210 : public Exception
212{
213public:
214 explicit NotInitializedException(const std::string& what)
215 : peak::common::Exception(what)
216 , peak::core::Exception(what)
217 , peak::common::LibraryNotInitializedException(what)
218 {}
219
220 explicit NotInitializedException(const char* what)
221 : peak::common::Exception(what)
222 , peak::core::Exception(what)
223 , peak::common::LibraryNotInitializedException(what)
224 {}
225
227 : peak::common::Exception(other)
228 , peak::core::Exception(other)
229 , peak::common::LibraryNotInitializedException(other)
230 {}
231};
232
238 : public Exception
240{
241public:
242 explicit OutOfRangeException(const std::string& what)
243 : peak::common::Exception(what)
244 , peak::core::Exception(what)
246 {}
247
248 explicit OutOfRangeException(const char* what)
249 : peak::common::Exception(what)
250 , peak::core::Exception(what)
252 {}
253
255 : peak::common::Exception(other)
256 , peak::core::Exception(other)
258 {}
259};
260
266 : public Exception
268{
269public:
270 explicit TimeoutException(const std::string& what)
271 : peak::common::Exception(what)
272 , peak::core::Exception(what)
274 {}
275
276 explicit TimeoutException(const char* what)
277 : peak::common::Exception(what)
278 , peak::core::Exception(what)
280 {}
281
283 : peak::common::Exception(other)
284 , peak::core::Exception(other)
285 , peak::common::TimeoutException(other)
286 {}
287};
288
297 : public Exception
299{
300public:
301 explicit IOException(const std::string& what)
302 : peak::common::Exception(what)
303 , peak::core::Exception(what)
304 , peak::common::IOException(what)
305 {}
306
307 explicit IOException(const char* what)
308 : peak::common::Exception(what)
309 , peak::core::Exception(what)
310 , peak::common::IOException(what)
311 {}
312
314 : peak::common::Exception(other)
315 , peak::core::Exception(other)
316 , peak::common::IOException(other)
317 {}
318};
319
327{
328 using Exception::Exception;
329};
330
337{
338 using Exception::Exception;
339};
340
341} /* namespace core */
342} /* namespace peak */
Thrown when memory allocation fails.
Definition peak_common_exceptions.hpp:66
Base class for all exceptions thrown by the library.
Definition peak_common_exceptions.hpp:31
Thrown when an input, output, file or device communication error occurs.
Definition peak_common_exceptions.hpp:140
Thrown when an unexpected internal error occurs.
Definition peak_common_exceptions.hpp:77
Thrown when a cast to an incompatible type is attempted.
Definition peak_common_exceptions.hpp:88
Thrown when a function receives an invalid parameter.
Definition peak_common_exceptions.hpp:53
Thrown when the library is used before proper initialization.
Definition peak_common_exceptions.hpp:101
Thrown when a parameter is outside the valid range.
Definition peak_common_exceptions.hpp:114
Thrown when an operation exceeds its time limit.
Definition peak_common_exceptions.hpp:127
The exception thrown for signaling an aborted operation.
Definition peak_exception.hpp:33
The exception thrown for signaling an access error.
Definition peak_exception.hpp:42
BadAllocException(const std::string &what)
Definition peak_exception.hpp:55
BadAllocException(const BadAllocException &other)
Definition peak_exception.hpp:67
BadAllocException(const char *what)
Definition peak_exception.hpp:61
The exception thrown for signaling an error on opening a CTI (Common Transport Interface) file.
Definition peak_exception.hpp:337
The base class for all exceptions thrown by the library.
Definition peak_exception.hpp:24
IOException(const char *what)
Definition peak_exception.hpp:307
IOException(const IOException &other)
Definition peak_exception.hpp:313
IOException(const std::string &what)
Definition peak_exception.hpp:301
InternalErrorException(const std::string &what)
Definition peak_exception.hpp:83
InternalErrorException(const char *what)
Definition peak_exception.hpp:89
InternalErrorException(const InternalErrorException &other)
Definition peak_exception.hpp:95
The exception thrown for trying to work on an invalid address.
Definition peak_exception.hpp:107
InvalidArgumentException(const char *what)
Definition peak_exception.hpp:126
InvalidArgumentException(const InvalidArgumentException &other)
Definition peak_exception.hpp:132
InvalidArgumentException(const std::string &what)
Definition peak_exception.hpp:120
InvalidCastException(const InvalidCastException &other)
Definition peak_exception.hpp:160
InvalidCastException(const std::string &what)
Definition peak_exception.hpp:148
InvalidCastException(const char *what)
Definition peak_exception.hpp:154
The exception thrown for trying to work on an invalid instance.
Definition peak_exception.hpp:172
The exception thrown for signalling that the requested data is not available.
Definition peak_exception.hpp:327
The exception thrown for signaling that a feature is not available in the device.
Definition peak_exception.hpp:181
The exception thrown for signaling a failed find operation.
Definition peak_exception.hpp:190
The exception thrown for signaling that a feature is not implemented.
Definition peak_exception.hpp:199
NotInitializedException(const char *what)
Definition peak_exception.hpp:220
NotInitializedException(const std::string &what)
Definition peak_exception.hpp:214
NotInitializedException(const NotInitializedException &other)
Definition peak_exception.hpp:226
OutOfRangeException(const char *what)
Definition peak_exception.hpp:248
OutOfRangeException(const OutOfRangeException &other)
Definition peak_exception.hpp:254
OutOfRangeException(const std::string &what)
Definition peak_exception.hpp:242
TimeoutException(const std::string &what)
Definition peak_exception.hpp:270
TimeoutException(const char *what)
Definition peak_exception.hpp:276
TimeoutException(const TimeoutException &other)
Definition peak_exception.hpp:282
Root namespace for common types and interfaces shared across multiple libraries.
Definition peak_common_math.hpp:17
The "core" namespace contains the direct GenAPI and GenTL wrapper.
Definition peak_buffer.hpp:32
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_buffer.hpp:29