IDS peak IPL v1.17.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
49{
50 using Exception::Exception;
51};
52
61class BadAllocException : public virtual Exception
62{
63 using Exception::Exception;
64};
65
72class InternalErrorException : public virtual Exception
73{
74 using Exception::Exception;
75};
76
83class InvalidCastException : public virtual Exception
84{
85 using Exception::Exception;
86};
87
97{
98 using Exception::Exception;
99};
100
109class OutOfRangeException : public virtual Exception
110{
111 using Exception::Exception;
112};
113
122class TimeoutException : public virtual Exception
123{
124 using Exception::Exception;
125};
126
135class IOException : public virtual Exception
136{
137 using Exception::Exception;
138};
139
148class 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