IDS peak genericC++ v1.12.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
26class Exception : public virtual peak::common::Exception
27{
28 using peak::common::Exception::Exception;
29};
30
35{
36 using Exception::Exception;
37};
38
43{
44 using Exception::Exception;
45};
46
51{
52public:
53 explicit BadAllocException(const std::string& what)
54 : peak::common::Exception(what)
55 , peak::core::Exception(what)
57 {}
58
59 explicit BadAllocException(const char* what)
60 : peak::common::Exception(what)
61 , peak::core::Exception(what)
63 {}
64
66 : peak::common::Exception(other)
67 , peak::core::Exception(other)
69 {}
70};
71
76{
77public:
78 explicit InternalErrorException(const std::string& what)
79 : peak::common::Exception(what)
80 , peak::core::Exception(what)
82 {}
83
84 explicit InternalErrorException(const char* what)
85 : peak::common::Exception(what)
86 , peak::core::Exception(what)
88 {}
89
95};
96
101{
102 using Exception::Exception;
103};
104
109{
110public:
111 explicit InvalidArgumentException(const std::string& what)
112 : peak::common::Exception(what)
113 , peak::core::Exception(what)
114 , peak::common::InvalidParameterException(what)
115 {}
116
117 explicit InvalidArgumentException(const char* what)
118 : peak::common::Exception(what)
119 , peak::core::Exception(what)
120 , peak::common::InvalidParameterException(what)
121 {}
122
124 : peak::common::Exception(other)
125 , peak::core::Exception(other)
126 , peak::common::InvalidParameterException(other)
127 {}
128};
129
134{
135public:
136 explicit InvalidCastException(const std::string& what)
137 : peak::common::Exception(what)
138 , peak::core::Exception(what)
140 {}
141
142 explicit InvalidCastException(const char* what)
143 : peak::common::Exception(what)
144 , peak::core::Exception(what)
146 {}
147
149 : peak::common::Exception(other)
150 , peak::core::Exception(other)
152 {}
153};
154
159{
160 using Exception::Exception;
161};
162
167{
168 using Exception::Exception;
169};
170
175{
176 using Exception::Exception;
177};
178
183{
184 using Exception::Exception;
185};
186
193{
194public:
195 explicit NotInitializedException(const std::string& what)
196 : peak::common::Exception(what)
197 , peak::core::Exception(what)
198 , peak::common::LibraryNotInitializedException(what)
199 {}
200
201 explicit NotInitializedException(const char* what)
202 : peak::common::Exception(what)
203 , peak::core::Exception(what)
204 , peak::common::LibraryNotInitializedException(what)
205 {}
206
208 : peak::common::Exception(other)
209 , peak::core::Exception(other)
210 , peak::common::LibraryNotInitializedException(other)
211 {}
212};
213
218{
219public:
220 explicit OutOfRangeException(const std::string& what)
221 : peak::common::Exception(what)
222 , peak::core::Exception(what)
224 {}
225
226 explicit OutOfRangeException(const char* what)
227 : peak::common::Exception(what)
228 , peak::core::Exception(what)
230 {}
231
233 : peak::common::Exception(other)
234 , peak::core::Exception(other)
236 {}
237};
238
243{
244public:
245 explicit TimeoutException(const std::string& what)
246 : peak::common::Exception(what)
247 , peak::core::Exception(what)
249 {}
250
251 explicit TimeoutException(const char* what)
252 : peak::common::Exception(what)
253 , peak::core::Exception(what)
255 {}
256
258 : peak::common::Exception(other)
259 , peak::core::Exception(other)
260 , peak::common::TimeoutException(other)
261 {}
262};
263
271{
272public:
273 explicit IOException(const std::string& what)
274 : peak::common::Exception(what)
275 , peak::core::Exception(what)
276 , peak::common::IOException(what)
277 {}
278
279 explicit IOException(const char* what)
280 : peak::common::Exception(what)
281 , peak::core::Exception(what)
282 , peak::common::IOException(what)
283 {}
284
286 : peak::common::Exception(other)
287 , peak::core::Exception(other)
288 , peak::common::IOException(other)
289 {}
290};
291
298{
299 using Exception::Exception;
300};
301
306{
307 using Exception::Exception;
308};
309
310} /* namespace core */
311} /* namespace peak */
Thrown when memory allocation fails.
Definition peak_common_exceptions.hpp:63
Base class for all exceptions thrown by the library.
Definition peak_common_exceptions.hpp:37
Thrown when an input, output, file or device communication error occurs.
Definition peak_common_exceptions.hpp:137
Thrown when an unexpected internal error occurs.
Definition peak_common_exceptions.hpp:74
Thrown when a cast to an incompatible type is attempted.
Definition peak_common_exceptions.hpp:85
Thrown when a function receives an invalid parameter.
Definition peak_common_exceptions.hpp:50
Thrown when the library is used before proper initialization.
Definition peak_common_exceptions.hpp:98
Thrown when a parameter is outside the valid range.
Definition peak_common_exceptions.hpp:111
Thrown when an operation exceeds its time limit.
Definition peak_common_exceptions.hpp:124
The exception thrown for signaling an aborted operation.
Definition peak_exception.hpp:35
The exception thrown for signaling an access error.
Definition peak_exception.hpp:43
BadAllocException(const std::string &what)
Definition peak_exception.hpp:53
BadAllocException(const BadAllocException &other)
Definition peak_exception.hpp:65
BadAllocException(const char *what)
Definition peak_exception.hpp:59
The exception thrown for signaling an error on opening a cti.
Definition peak_exception.hpp:306
The base class for all exceptions thrown by the library.
Definition peak_exception.hpp:27
IOException(const char *what)
Definition peak_exception.hpp:279
IOException(const IOException &other)
Definition peak_exception.hpp:285
IOException(const std::string &what)
Definition peak_exception.hpp:273
InternalErrorException(const std::string &what)
Definition peak_exception.hpp:78
InternalErrorException(const char *what)
Definition peak_exception.hpp:84
InternalErrorException(const InternalErrorException &other)
Definition peak_exception.hpp:90
The exception thrown for trying to work on an invalid address.
Definition peak_exception.hpp:101
InvalidArgumentException(const char *what)
Definition peak_exception.hpp:117
InvalidArgumentException(const InvalidArgumentException &other)
Definition peak_exception.hpp:123
InvalidArgumentException(const std::string &what)
Definition peak_exception.hpp:111
InvalidCastException(const InvalidCastException &other)
Definition peak_exception.hpp:148
InvalidCastException(const std::string &what)
Definition peak_exception.hpp:136
InvalidCastException(const char *what)
Definition peak_exception.hpp:142
The exception thrown for trying to work on an invalid instance.
Definition peak_exception.hpp:159
The exception thrown for signalling that the requested data is not available.
Definition peak_exception.hpp:298
The exception thrown for signaling that a feature is not available in the device.
Definition peak_exception.hpp:167
The exception thrown for signaling a failed find operation.
Definition peak_exception.hpp:175
The exception thrown for signaling a feature is not implemented.
Definition peak_exception.hpp:183
NotInitializedException(const char *what)
Definition peak_exception.hpp:201
NotInitializedException(const std::string &what)
Definition peak_exception.hpp:195
NotInitializedException(const NotInitializedException &other)
Definition peak_exception.hpp:207
OutOfRangeException(const char *what)
Definition peak_exception.hpp:226
OutOfRangeException(const OutOfRangeException &other)
Definition peak_exception.hpp:232
OutOfRangeException(const std::string &what)
Definition peak_exception.hpp:220
TimeoutException(const std::string &what)
Definition peak_exception.hpp:245
TimeoutException(const char *what)
Definition peak_exception.hpp:251
TimeoutException(const TimeoutException &other)
Definition peak_exception.hpp:257
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