Skip to content

Commit 6dc417c

Browse files
committed
Progress
1 parent 8849aa3 commit 6dc417c

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

src/vws/exceptions.py

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,14 @@ def __init__(self, response: Response) -> None:
245245
response: The response to a request to Vuforia.
246246
"""
247247
super().__init__()
248-
self.response = response
248+
self._response = response
249+
250+
@property
251+
def response(self) -> Response:
252+
"""
253+
The response returned by Vuforia which included this error.
254+
"""
255+
return self._response
249256

250257

251258
class InactiveProject(Exception):
@@ -260,7 +267,14 @@ def __init__(self, response: Response) -> None:
260267
response: The response to a request to Vuforia.
261268
"""
262269
super().__init__()
263-
self.response = response
270+
self._response = response
271+
272+
@property
273+
def response(self) -> Response:
274+
"""
275+
The response returned by Vuforia which included this error.
276+
"""
277+
return self._response
264278

265279

266280
class DateRangeError(Exception):
@@ -275,7 +289,14 @@ def __init__(self, response: Response) -> None:
275289
response: The response to a request to Vuforia.
276290
"""
277291
super().__init__()
278-
self.response = response
292+
self._response = response
293+
294+
@property
295+
def response(self) -> Response:
296+
"""
297+
The response returned by Vuforia which included this error.
298+
"""
299+
return self._response
279300

280301

281302
class TargetProcessingTimeout(Exception):

0 commit comments

Comments
 (0)