IDS peak ICV v1.3.0
Loading...
Searching...
No Matches
exceptions.py
Go to the documentation of this file.
2from ids_peak_icv.backend.datatypes import peak_icv_status
3
4
5class ICVException(ids_peak_common.exceptions.CommonException):
6 """!
7 @brief
8 Base class for all exceptions thrown by the library.
9
10 @since ids_peak_icv 1.0
11 """
12
13 def __init__(self, message: str, status: peak_icv_status):
14 super().__init__(message)
15 self.status = status
16
17
19 """!
20 @brief
21 Occurs when a required dependency is missing, the library is not initialized, or a misconfiguration arises.
22
23 @since ids_peak_icv 1.0
24 """
25
26 def __init__(self, message: str, status: peak_icv_status):
27 super().__init__(message, status)
28
29
31 ICVException,
32 ids_peak_common.exceptions.InternalErrorException
33):
34 """!
35 @brief
36 Occurs when a failure happens during processing due to an unhandled internal routine condition.
37
38 @since ids_peak_icv 1.0
39 """
40
41 def __init__(self, message: str):
42 super().__init__(message, peak_icv_status.PEAK_ICV_STATUS_INTERNAL_ERROR)
43
44
46 """!
47 @brief
48 Occurs when input parameters do not match expected conditions (e.g., two input images have different sizes).
49
50 @since ids_peak_icv 1.0
51 """
52
53 def __init__(self, message: str):
54 super().__init__(message, peak_icv_status.PEAK_ICV_STATUS_MISMATCH)
55
56
58 ICVException,
59 ids_peak_common.exceptions.NotSupportedException
60):
61 """!
62 @brief
63 Occurs when a requested operation is not implemented or supported (e.g., exporting to an unsupported file format).
64
65 @since ids_peak_icv 1.0
66 """
67
68 def __init__(self, message: str):
69 super().__init__(message, peak_icv_status.PEAK_ICV_STATUS_NOT_SUPPORTED)
70
71
73 """!
74 @brief
75 Occurs when an operation cannot be performed due to logical constraints (e.g., camera calibration without input images).
76
77 @since ids_peak_icv 1.0
78 """
79
80 def __init__(self, message: str):
81 super().__init__(message, peak_icv_status.PEAK_ICV_STATUS_NOT_POSSIBLE)
82
83
85 ICVException,
86 ids_peak_common.exceptions.OutOfRangeException
87):
88 """!
89 @brief
90 Occurs when a provided value falls outside the allowed valid range.
91
92 @since ids_peak_icv 1.0
93 """
94
95 def __init__(self, message: str):
96 super().__init__(message, peak_icv_status.PEAK_ICV_STATUS_OUT_OF_RANGE)
97
98
100 """!
101 @brief
102 Occurs when a mathematical computation fails (e.g., division by zero or invalid matrix operations).
103
104 @since ids_peak_icv 1.0
105 """
106
107 def __init__(self, message: str):
108 super().__init__(message, peak_icv_status.PEAK_ICV_STATUS_MATH_ERROR)
109
110
112 """!
113 @brief
114 Occurs when an expected target object (e.g., calibration plate or marker) is not detected in the input image.
115
116 @since ids_peak_icv 1.0
117 """
118
119 def __init__(self, message: str):
120 super().__init__(message, peak_icv_status.PEAK_ICV_STATUS_TARGET_NOT_FOUND)
121
122
124 """!
125 @brief
126 Occurs when reading from a file or stream that is incomplete, damaged, or in an unexpected format.
127
128 @since ids_peak_icv 1.0
129 """
130
131 def __init__(self, message: str):
132 super().__init__(message, peak_icv_status.PEAK_ICV_STATUS_CORRUPTED)
133
134
136 ICVException,
137 ids_peak_common.exceptions.IOException
138):
139 """!
140 @brief
141 Occurs when a file operation fails (e.g., missing file, insufficient permissions, or inaccessible directory).
142
143 @since ids_peak_icv 1.0
144 """
145
146 def __init__(self, message: str):
147 super().__init__(message, peak_icv_status.PEAK_ICV_STATUS_IO_ERROR)
148
149
151 """!
152 @brief
153 Occurs when attempting to access an object or value via an uninitialized or null pointer.
154
155 @since ids_peak_icv 1.0
156 """
157
158 def __init__(self, message: str):
159 super().__init__(message, peak_icv_status.PEAK_ICV_STATUS_NULL_POINTER)
Occurs when reading from a file or stream that is incomplete, damaged, or in an unexpected format.
Base class for all exceptions thrown by the library.
Definition exceptions.py:5
__init__(self, str message, peak_icv_status status)
Definition exceptions.py:13
Occurs when a file operation fails (e.g., missing file, insufficient permissions, or inaccessible dir...
Occurs when a failure happens during processing due to an unhandled internal routine condition.
Definition exceptions.py:33
Occurs when a required dependency is missing, the library is not initialized, or a misconfiguration a...
Definition exceptions.py:18
__init__(self, str message, peak_icv_status status)
Definition exceptions.py:26
Occurs when a mathematical computation fails (e.g., division by zero or invalid matrix operations).
Definition exceptions.py:99
Occurs when input parameters do not match expected conditions (e.g., two input images have different ...
Definition exceptions.py:45
Occurs when an operation cannot be performed due to logical constraints (e.g., camera calibration wit...
Definition exceptions.py:72
Occurs when a requested operation is not implemented or supported (e.g., exporting to an unsupported ...
Definition exceptions.py:60
Occurs when attempting to access an object or value via an uninitialized or null pointer.
Occurs when a provided value falls outside the allowed valid range.
Definition exceptions.py:87
Occurs when an expected target object (e.g., calibration plate or marker) is not detected in the inpu...