IDS peak AFL v1.8.0
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{
27
36class Exception : public std::runtime_error
37{
38 using std::runtime_error::runtime_error;
39};
40
50{
51 using Exception::Exception;
52};
53
62class BadAllocException : public virtual Exception
63{
64 using Exception::Exception;
65};
66
73class InternalErrorException : public virtual Exception
74{
75 using Exception::Exception;
76};
77
84class InvalidCastException : public virtual Exception
85{
86 using Exception::Exception;
87};
88
98{
99 using Exception::Exception;
100};
101
110class OutOfRangeException : public virtual Exception
111{
112 using Exception::Exception;
113};
114
123class TimeoutException : public virtual Exception
124{
125 using Exception::Exception;
126};
127
136class IOException : public virtual Exception
137{
138 using Exception::Exception;
139};
140
149class NotSupportedException : public virtual Exception
150{
151 using Exception::Exception;
152};
153
154} // namespace common
155} // 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 an unsupported operation or feature is used.
Definition peak_common_exceptions.hpp:150
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
Root namespace for common types and interfaces shared across multiple libraries.
Definition peak_common_math.hpp:22