IDS peak ICV v1.1.0
Loading...
Searching...
No Matches
exceptions.py
Go to the documentation of this file.
1class CommonException(Exception):
2 """!
3 @brief
4 Base class for all exceptions thrown by the library.
5
6 @ingroup ids_peak_common_python_exceptions
7 """
8
9 def __init__(self, message: str):
10 super().__init__(message)
11
12
14 """!
15 @brief
16 Thrown when a function receives an invalid parameter.
17
18 Typically, indicates a null or otherwise invalid value passed to a parameter.
19
20 @ingroup ids_peak_common_python_exceptions
21 """
22
23 def __init__(self, message: str):
24 super().__init__(message)
25
26
28 """!
29 @brief
30 Thrown when memory allocation fails.
31
32 Indicates that the system was unable to allocate the required memory.
33
34 @ingroup ids_peak_common_python_exceptions
35 """
36
37 def __init__(self, message: str):
38 super().__init__(message)
39
40
42 """!
43 @brief
44 Thrown when an unexpected internal error occurs.
45
46 @ingroup ids_peak_common_python_exceptions
47 """
48
49 def __init__(self, message: str):
50 super().__init__(message)
51
52
54 """!
55 @brief
56 Thrown when a cast to an incompatible type is attempted.
57
58 @ingroup ids_peak_common_python_exceptions
59 """
60
61 def __init__(self, message: str):
62 super().__init__(message)
63
64
66 """!
67 @brief
68 Thrown when the library is used before proper initialization.
69
70 Ensure that the library initialization function has been called before using other features.
71
72 @ingroup ids_peak_common_python_exceptions
73 """
74
75 def __init__(self, message: str):
76 super().__init__(message)
77
78
80 """!
81 @brief
82 Thrown when a parameter is outside the valid range.
83
84 Indicates a value that is either too high or too low for the expected bounds.
85
86 @ingroup ids_peak_common_python_exceptions
87 """
88
89 def __init__(self, message: str):
90 super().__init__(message)
91
92
94 """!
95 @brief
96 Thrown when an operation exceeds its time limit.
97
98 May indicate a hang, deadlock, or unresponsive resource.
99
100 @ingroup ids_peak_common_python_exceptions
101 """
102
103 def __init__(self, message: str):
104 super().__init__(message)
105
106
108 """!
109 @brief
110 Thrown when an input, output, file or device communication error occurs.
111
112 Often indicates a disconnection or failure to access a hardware device or file.
113
114 @ingroup ids_peak_common_python_exceptions
115 """
116
117 def __init__(self, message: str):
118 super().__init__(message)
119
120
122 """!
123 @brief
124 Thrown when an unsupported operation or feature is used.
125
126 Indicates functionality that is not available in the current context or platform.
127
128 @ingroup ids_peak_common_python_exceptions
129 """
130
131 def __init__(self, message: str):
132 super().__init__(message)
Thrown when memory allocation fails.
Definition exceptions.py:27
Base class for all exceptions thrown by the library.
Definition exceptions.py:1
Thrown when an input, output, file or device communication error occurs.
Thrown when an unexpected internal error occurs.
Definition exceptions.py:41
Thrown when a cast to an incompatible type is attempted.
Definition exceptions.py:53
Thrown when a function receives an invalid parameter.
Definition exceptions.py:13
Thrown when the library is used before proper initialization.
Definition exceptions.py:65
Thrown when an unsupported operation or feature is used.
Thrown when a parameter is outside the valid range.
Definition exceptions.py:79
Thrown when an operation exceeds its time limit.
Definition exceptions.py:93