@@ -17,7 +17,14 @@ def __init__(self, response: Response) -> None:
17
17
response: The response to a request to Vuforia.
18
18
"""
19
19
super ().__init__ ()
20
- self .response = response
20
+ self ._response = response
21
+
22
+ @property
23
+ def response (self ) -> Response :
24
+ """
25
+ The response returned by Vuforia which included this error.
26
+ """
27
+ return self ._response
21
28
22
29
23
30
class Fail (Exception ):
@@ -32,7 +39,14 @@ def __init__(self, response: Response) -> None:
32
39
response: The response to a request to Vuforia.
33
40
"""
34
41
super ().__init__ ()
35
- self .response = response
42
+ self ._response = response
43
+
44
+ @property
45
+ def response (self ) -> Response :
46
+ """
47
+ The response returned by Vuforia which included this error.
48
+ """
49
+ return self ._response
36
50
37
51
38
52
class BadImage (Exception ):
@@ -47,7 +61,14 @@ def __init__(self, response: Response) -> None:
47
61
response: The response to a request to Vuforia.
48
62
"""
49
63
super ().__init__ ()
50
- self .response = response
64
+ self ._response = response
65
+
66
+ @property
67
+ def response (self ) -> Response :
68
+ """
69
+ The response returned by Vuforia which included this error.
70
+ """
71
+ return self ._response
51
72
52
73
53
74
class AuthenticationFailure (Exception ):
@@ -62,8 +83,14 @@ def __init__(self, response: Response) -> None:
62
83
response: The response to a request to Vuforia.
63
84
"""
64
85
super ().__init__ ()
65
- self .response = response
86
+ self ._response = response
66
87
88
+ @property
89
+ def response (self ) -> Response :
90
+ """
91
+ The response returned by Vuforia which included this error.
92
+ """
93
+ return self ._response
67
94
68
95
class TargetStatusProcessing (Exception ):
69
96
"""
@@ -77,7 +104,14 @@ def __init__(self, response: Response) -> None:
77
104
response: The response to a request to Vuforia.
78
105
"""
79
106
super ().__init__ ()
80
- self .response = response
107
+ self ._response = response
108
+
109
+ @property
110
+ def response (self ) -> Response :
111
+ """
112
+ The response returned by Vuforia which included this error.
113
+ """
114
+ return self ._response
81
115
82
116
83
117
class ProjectInactive (Exception ):
@@ -92,7 +126,14 @@ def __init__(self, response: Response) -> None:
92
126
response: The response to a request to Vuforia.
93
127
"""
94
128
super ().__init__ ()
95
- self .response = response
129
+ self ._response = response
130
+
131
+ @property
132
+ def response (self ) -> Response :
133
+ """
134
+ The response returned by Vuforia which included this error.
135
+ """
136
+ return self ._response
96
137
97
138
98
139
class MetadataTooLarge (Exception ):
@@ -107,7 +148,14 @@ def __init__(self, response: Response) -> None:
107
148
response: The response to a request to Vuforia.
108
149
"""
109
150
super ().__init__ ()
110
- self .response = response
151
+ self ._response = response
152
+
153
+ @property
154
+ def response (self ) -> Response :
155
+ """
156
+ The response returned by Vuforia which included this error.
157
+ """
158
+ return self ._response
111
159
112
160
113
161
class TargetNameExist (Exception ):
@@ -122,7 +170,14 @@ def __init__(self, response: Response) -> None:
122
170
response: The response to a request to Vuforia.
123
171
"""
124
172
super ().__init__ ()
125
- self .response = response
173
+ self ._response = response
174
+
175
+ @property
176
+ def response (self ) -> Response :
177
+ """
178
+ The response returned by Vuforia which included this error.
179
+ """
180
+ return self ._response
126
181
127
182
128
183
class ImageTooLarge (Exception ):
@@ -137,4 +192,11 @@ def __init__(self, response: Response) -> None:
137
192
response: The response to a request to Vuforia.
138
193
"""
139
194
super ().__init__ ()
140
- self .response = response
195
+ self ._response = response
196
+
197
+ @property
198
+ def response (self ) -> Response :
199
+ """
200
+ The response returned by Vuforia which included this error.
201
+ """
202
+ return self ._response
0 commit comments