IDS peak ICV v1.2.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
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.
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.