-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcloud_reco_exceptions.py
More file actions
44 lines (32 loc) · 1.01 KB
/
cloud_reco_exceptions.py
File metadata and controls
44 lines (32 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
"""Exceptions which match errors raised by the Vuforia Cloud Recognition
Web
APIs.
"""
from beartype import beartype
from vws.exceptions.base_exceptions import CloudRecoError
@beartype
class MaxNumResultsOutOfRangeError(CloudRecoError):
"""
Exception raised when the ``max_num_results`` given to the Cloud
Recognition Web API query endpoint is out of range.
"""
@beartype
class InactiveProjectError(CloudRecoError):
"""Exception raised when Vuforia returns a response with a result code
'InactiveProject'.
"""
@beartype
class BadImageError(CloudRecoError):
"""Exception raised when Vuforia returns a response with a result code
'BadImage'.
"""
@beartype
class AuthenticationFailureError(CloudRecoError):
"""Exception raised when Vuforia returns a response with a result code
'AuthenticationFailure'.
"""
@beartype
class RequestTimeTooSkewedError(CloudRecoError):
"""Exception raised when Vuforia returns a response with a result code
'RequestTimeTooSkewed'.
"""