Skip to content

Commit a22cec9

Browse files
Merge pull request #883 from adamtheturtle/document-raises
Document raises UnknownTarget
2 parents 03a537d + 1b31683 commit a22cec9

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

spelling_private_dict.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Ubuntu
2+
UnknownTarget
23
api
34
args
45
ascii

src/vws/vws.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,10 @@ def get_target_record(self, target_id: str) -> Dict[str, Union[str, int]]:
242242
243243
Returns:
244244
Response details of a target from Vuforia.
245+
246+
Raises:
247+
~vws.exceptions.UnknownTarget: The given target ID does not match a
248+
target in the database.
245249
"""
246250
response = self._make_request(
247251
method='GET',
@@ -264,6 +268,8 @@ def wait_for_target_processed(self, target_id: str) -> None:
264268
Raises:
265269
TimeoutError: The target remained in the processing stage for more
266270
than five minutes.
271+
~vws.exceptions.UnknownTarget: The given target ID does not match a
272+
target in the database.
267273
"""
268274
while True:
269275
report = self.get_target_summary_report(target_id=target_id)
@@ -309,6 +315,10 @@ def get_target_summary_report(
309315
310316
Returns:
311317
Details of the target.
318+
319+
Raises:
320+
~vws.exceptions.UnknownTarget: The given target ID does not match a
321+
target in the database.
312322
"""
313323
response = self._make_request(
314324
method='GET',
@@ -347,6 +357,10 @@ def delete_target(self, target_id: str) -> None:
347357
348358
Args:
349359
target_id: The ID of the target to delete.
360+
361+
Raises:
362+
~vws.exceptions.UnknownTarget: The given target ID does not match a
363+
target in the database.
350364
"""
351365
self._make_request(
352366
method='DELETE',

0 commit comments

Comments
 (0)