IDS peak genericC++ v1.17.0
Loading...
Searching...
No Matches
peak_common_exceptions.hpp
Go to the documentation of this file.
1
5
13
14#pragma once
15
16#include <stdexcept>
17
18namespace peak
19{
20namespace common
21{
30class Exception : public std::runtime_error
31{
32 using std::runtime_error::runtime_error;
33};
34
35
36#if defined(__clang__)
37# pragma clang diagnostic push
38# pragma clang diagnostic ignored "-Wpadded"
39#elif defined(__GNUC__)
40# pragma GCC diagnostic push
41# pragma GCC diagnostic ignored "-Wpadded"
42#endif
43
53{
54 using Exception::Exception;
55};
56
65class BadAllocException : public virtual Exception
66{
67 using Exception::Exception;
68};
69
76class InternalErrorException : public virtual Exception
77{
78 using Exception::Exception;
79};
80
87class InvalidCastException : public virtual Exception
88{
89 using Exception::Exception;
90};
91
101{
102 using Exception::Exception;
103};
104
113class OutOfRangeException : public virtual Exception
114{
115 using Exception::Exception;
116};
117
126class TimeoutException : public virtual Exception
127{
128 using Exception::Exception;
129};
130
139class IOException : public virtual Exception
140{
141 using Exception::Exception;
142};
143
152class NotSupportedException : public virtual Exception
153{
154 using Exception::Exception;
155};
156
157#if defined(__clang__)
158# pragma clang diagnostic pop
159#elif defined(__GNUC__)
160# pragma GCC diagnostic pop
161#endif
162
163} // namespace common
164} // 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 an unsupported operation or feature is used.
Definition peak_common_exceptions.hpp:153
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
Root namespace for common types and interfaces shared across multiple libraries.
Definition peak_common_math.hpp:17
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_buffer.hpp:29