IDS peak genericC++ v1.13.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{
35 class Exception : public std::runtime_error
36 {
37 using std::runtime_error::runtime_error;
38 };
39
48 class InvalidParameterException : public virtual Exception
49 {
50 using Exception::Exception;
51 };
52
61 class BadAllocException : public virtual Exception
62 {
63 using Exception::Exception;
64 };
65
72 class InternalErrorException : public virtual Exception
73 {
74 using Exception::Exception;
75 };
76
83 class InvalidCastException : public virtual Exception
84 {
85 using Exception::Exception;
86 };
87
97 {
98 using Exception::Exception;
99 };
100
109 class OutOfRangeException : public virtual Exception
110 {
111 using Exception::Exception;
112 };
113
122 class TimeoutException : public virtual Exception
123 {
124 using Exception::Exception;
125 };
126
135 class IOException : public virtual Exception
136 {
137 using Exception::Exception;
138 };
139
148 class NotSupportedException : public virtual Exception
149 {
150 using Exception::Exception;
151 };
152} // namespace common
153} // namespace peak
Thrown when memory allocation fails.
Definition peak_common_exceptions.hpp:62
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:136
Thrown when an unexpected internal error occurs.
Definition peak_common_exceptions.hpp:73
Thrown when a cast to an incompatible type is attempted.
Definition peak_common_exceptions.hpp:84
Thrown when a function receives an invalid parameter.
Definition peak_common_exceptions.hpp:49
Thrown when the library is used before proper initialization.
Definition peak_common_exceptions.hpp:97
Thrown when an unsupported operation or feature is used.
Definition peak_common_exceptions.hpp:149
Thrown when a parameter is outside the valid range.
Definition peak_common_exceptions.hpp:110
Thrown when an operation exceeds its time limit.
Definition peak_common_exceptions.hpp:123
Root namespace for common types and interfaces shared across multiple libraries.
Definition peak_common_math.hpp:22
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_dynamic_loader.h:33