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