IDS peak genericC++ v1.14.0
Loading...
Searching...
No Matches
peak_exception.hpp
Go to the documentation of this file.
1
10
11#pragma once
12
13
14#include <stdexcept>
16
17
18namespace peak
19{
20namespace core
21{
22
27class Exception : public virtual peak::common::Exception
28{
29 using peak::common::Exception::Exception;
30};
31
37{
38 using Exception::Exception;
39};
40
46{
47 using Exception::Exception;
48};
49
55{
56public:
57 explicit BadAllocException(const std::string& what)
58 : peak::common::Exception(what)
59 , peak::core::Exception(what)
61 {}
62
63 explicit BadAllocException(const char* what)
64 : peak::common::Exception(what)
65 , peak::core::Exception(what)
67 {}
68
70 : peak::common::Exception(other)
71 , peak::core::Exception(other)
73 {}
74};
75
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{
117public:
118 explicit InvalidArgumentException(const std::string& what)
119 : peak::common::Exception(what)
120 , peak::core::Exception(what)
121 , peak::common::InvalidParameterException(what)
122 {}
123
124 explicit InvalidArgumentException(const char* what)
125 : peak::common::Exception(what)
126 , peak::core::Exception(what)
127 , peak::common::InvalidParameterException(what)
128 {}
129
131 : peak::common::Exception(other)
132 , peak::core::Exception(other)
133 , peak::common::InvalidParameterException(other)
134 {}
135};
136
142{
143public:
144 explicit InvalidCastException(const std::string& what)
145 : peak::common::Exception(what)
146 , peak::core::Exception(what)
148 {}
149
150 explicit InvalidCastException(const char* what)
151 : peak::common::Exception(what)
152 , peak::core::Exception(what)
154 {}
155
157 : peak::common::Exception(other)
158 , peak::core::Exception(other)
160 {}
161};
162
168{
169 using Exception::Exception;
170};
171
177{
178 using Exception::Exception;
179};
180
186{
187 using Exception::Exception;
188};
189
195{
196 using Exception::Exception;
197};
198
206{
207public:
208 explicit NotInitializedException(const std::string& what)
209 : peak::common::Exception(what)
210 , peak::core::Exception(what)
211 , peak::common::LibraryNotInitializedException(what)
212 {}
213
214 explicit NotInitializedException(const char* what)
215 : peak::common::Exception(what)
216 , peak::core::Exception(what)
217 , peak::common::LibraryNotInitializedException(what)
218 {}
219
221 : peak::common::Exception(other)
222 , peak::core::Exception(other)
223 , peak::common::LibraryNotInitializedException(other)
224 {}
225};
226
232{
233public:
234 explicit OutOfRangeException(const std::string& what)
235 : peak::common::Exception(what)
236 , peak::core::Exception(what)
238 {}
239
240 explicit OutOfRangeException(const char* what)
241 : peak::common::Exception(what)
242 , peak::core::Exception(what)
244 {}
245
247 : peak::common::Exception(other)
248 , peak::core::Exception(other)
250 {}
251};
252
258{
259public:
260 explicit TimeoutException(const std::string& what)
261 : peak::common::Exception(what)
262 , peak::core::Exception(what)
264 {}
265
266 explicit TimeoutException(const char* what)
267 : peak::common::Exception(what)
268 , peak::core::Exception(what)
270 {}
271
273 : peak::common::Exception(other)
274 , peak::core::Exception(other)
275 , peak::common::TimeoutException(other)
276 {}
277};
278
287{
288public:
289 explicit IOException(const std::string& what)
290 : peak::common::Exception(what)
291 , peak::core::Exception(what)
292 , peak::common::IOException(what)
293 {}
294
295 explicit IOException(const char* what)
296 : peak::common::Exception(what)
297 , peak::core::Exception(what)
298 , peak::common::IOException(what)
299 {}
300
302 : peak::common::Exception(other)
303 , peak::core::Exception(other)
304 , peak::common::IOException(other)
305 {}
306};
307
315{
316 using Exception::Exception;
317};
318
325{
326 using Exception::Exception;
327};
328
329} /* namespace core */
330} /* namespace peak */
Thrown when memory allocation fails.
Definition peak_common_exceptions.hpp:62
Base class for all exceptions thrown by the library.
Definition peak_common_exceptions.hpp:36
Thrown when an input, output, file or device communication error occurs.
Definition peak_common_exceptions.hpp:136
Thrown when an unexpected internal error occurs.
Definition peak_common_exceptions.hpp:73
Thrown when a cast to an incompatible type is attempted.
Definition peak_common_exceptions.hpp:84
Thrown when a function receives an invalid parameter.
Definition peak_common_exceptions.hpp:49
Thrown when the library is used before proper initialization.
Definition peak_common_exceptions.hpp:97
Thrown when a parameter is outside the valid range.
Definition peak_common_exceptions.hpp:110
Thrown when an operation exceeds its time limit.
Definition peak_common_exceptions.hpp:123
The exception thrown for signaling an aborted operation.
Definition peak_exception.hpp:37
The exception thrown for signaling an access error.
Definition peak_exception.hpp:46
BadAllocException(const std::string &what)
Definition peak_exception.hpp:57
BadAllocException(const BadAllocException &other)
Definition peak_exception.hpp:69
BadAllocException(const char *what)
Definition peak_exception.hpp:63
The exception thrown for signaling an error on opening a CTI (Common Transport Interface) file.
Definition peak_exception.hpp:325
The base class for all exceptions thrown by the library.
Definition peak_exception.hpp:28
IOException(const char *what)
Definition peak_exception.hpp:295
IOException(const IOException &other)
Definition peak_exception.hpp:301
IOException(const std::string &what)
Definition peak_exception.hpp:289
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:124
InvalidArgumentException(const InvalidArgumentException &other)
Definition peak_exception.hpp:130
InvalidArgumentException(const std::string &what)
Definition peak_exception.hpp:118
InvalidCastException(const InvalidCastException &other)
Definition peak_exception.hpp:156
InvalidCastException(const std::string &what)
Definition peak_exception.hpp:144
InvalidCastException(const char *what)
Definition peak_exception.hpp:150
The exception thrown for trying to work on an invalid instance.
Definition peak_exception.hpp:168
The exception thrown for signalling that the requested data is not available.
Definition peak_exception.hpp:315
The exception thrown for signaling that a feature is not available in the device.
Definition peak_exception.hpp:177
The exception thrown for signaling a failed find operation.
Definition peak_exception.hpp:186
The exception thrown for signaling that a feature is not implemented.
Definition peak_exception.hpp:195
NotInitializedException(const char *what)
Definition peak_exception.hpp:214
NotInitializedException(const std::string &what)
Definition peak_exception.hpp:208
NotInitializedException(const NotInitializedException &other)
Definition peak_exception.hpp:220
OutOfRangeException(const char *what)
Definition peak_exception.hpp:240
OutOfRangeException(const OutOfRangeException &other)
Definition peak_exception.hpp:246
OutOfRangeException(const std::string &what)
Definition peak_exception.hpp:234
TimeoutException(const std::string &what)
Definition peak_exception.hpp:260
TimeoutException(const char *what)
Definition peak_exception.hpp:266
TimeoutException(const TimeoutException &other)
Definition peak_exception.hpp:272
Root namespace for common types and interfaces shared across multiple libraries.
Definition peak_common_math.hpp:22
The "core" namespace contains the direct GenAPI and GenTL wrapper.
Definition peak_buffer.hpp:34
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_dynamic_loader.h:33