IDS peak ICV v1.3.0
Loading...
Searching...
No Matches
peak_common_exceptions.hpp
Go to the documentation of this file.
1
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.
Base class for all exceptions thrown by the library.
Thrown when an input, output, file or device communication error occurs.
Thrown when an unexpected internal error occurs.
Thrown when a cast to an incompatible type is attempted.
Thrown when a function receives an invalid parameter.
Thrown when the library is used before proper initialization.
Thrown when an unsupported operation or feature is used.
Thrown when a parameter is outside the valid range.
Thrown when an operation exceeds its time limit.