IDS peak AFL v2.0.1
Loading...
Searching...
No Matches
peak_common_exceptions.hpp
Go to the documentation of this file.
1
10
18
19#pragma once
20
21#include <stdexcept>
22
23namespace peak
24{
25namespace common
26{
35class Exception : public std::runtime_error
36{
37 using std::runtime_error::runtime_error;
38};
39
40
41#if defined(__clang__)
42#pragma clang diagnostic push
43#pragma clang diagnostic ignored "-Wpadded"
44#elif defined(__GNUC__)
45#pragma GCC diagnostic push
46#pragma GCC diagnostic ignored "-Wpadded"
47#endif
48
58{
59 using Exception::Exception;
60};
61
70class BadAllocException : public virtual Exception
71{
72 using Exception::Exception;
73};
74
81class InternalErrorException : public virtual Exception
82{
83 using Exception::Exception;
84};
85
92class InvalidCastException : public virtual Exception
93{
94 using Exception::Exception;
95};
96
106{
107 using Exception::Exception;
108};
109
118class OutOfRangeException : public virtual Exception
119{
120 using Exception::Exception;
121};
122
131class TimeoutException : public virtual Exception
132{
133 using Exception::Exception;
134};
135
144class IOException : public virtual Exception
145{
146 using Exception::Exception;
147};
148
157class NotSupportedException : public virtual Exception
158{
159 using Exception::Exception;
160};
161
162#if defined(__clang__)
163#pragma clang diagnostic pop
164#elif defined(__GNUC__)
165#pragma GCC diagnostic pop
166#endif
167
168} // namespace common
169} // namespace peak
Thrown when memory allocation fails.
Definition peak_common_exceptions.hpp:71
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:145
Thrown when an unexpected internal error occurs.
Definition peak_common_exceptions.hpp:82
Thrown when a cast to an incompatible type is attempted.
Definition peak_common_exceptions.hpp:93
Thrown when a function receives an invalid parameter.
Definition peak_common_exceptions.hpp:58
Thrown when the library is used before proper initialization.
Definition peak_common_exceptions.hpp:106
Thrown when an unsupported operation or feature is used.
Definition peak_common_exceptions.hpp:158
Thrown when a parameter is outside the valid range.
Definition peak_common_exceptions.hpp:119
Thrown when an operation exceeds its time limit.
Definition peak_common_exceptions.hpp:132
Root namespace for common types and interfaces shared across multiple libraries.
Definition peak_common_math.hpp:22