1414
1515@beartype
1616class UnknownTargetError (VWSError ):
17- """Exception raised when Vuforia returns a response with a result code
17+ """
18+ Exception raised when Vuforia returns a response with a result code
1819 'UnknownTarget'.
1920 """
2021
2122 @property
2223 def target_id (self ) -> str :
23- """The unknown target ID."""
24+ """
25+ The unknown target ID.
26+ """
2427 path = urlparse (url = self .response .url ).path
2528 # Every HTTP path which can raise this error is in the format
2629 # `/something/{target_id}`.
@@ -29,40 +32,48 @@ def target_id(self) -> str:
2932
3033@beartype
3134class FailError (VWSError ):
32- """Exception raised when Vuforia returns a response with a result code 'Fail'."""
35+ """
36+ Exception raised when Vuforia returns a response with a result code 'Fail'.
37+ """
3338
3439
3540@beartype
3641class BadImageError (VWSError ):
37- """Exception raised when Vuforia returns a response with a result code
42+ """
43+ Exception raised when Vuforia returns a response with a result code
3844 'BadImage'.
3945 """
4046
4147
4248@beartype
4349class AuthenticationFailureError (VWSError ):
44- """Exception raised when Vuforia returns a response with a result code
50+ """
51+ Exception raised when Vuforia returns a response with a result code
4552 'AuthenticationFailure'.
4653 """
4754
4855
4956# See https://github.com/VWS-Python/vws-python/issues/822.
5057@beartype
5158class RequestQuotaReachedError (VWSError ): # pragma: no cover
52- """Exception raised when Vuforia returns a response with a result code
59+ """
60+ Exception raised when Vuforia returns a response with a result code
5361 'RequestQuotaReached'.
5462 """
5563
5664
5765@beartype
5866class TargetStatusProcessingError (VWSError ):
59- """Exception raised when Vuforia returns a response with a result code
67+ """
68+ Exception raised when Vuforia returns a response with a result code
6069 'TargetStatusProcessing'.
6170 """
6271
6372 @property
6473 def target_id (self ) -> str :
65- """The processing target ID."""
74+ """
75+ The processing target ID.
76+ """
6677 path = urlparse (url = self .response .url ).path
6778 # Every HTTP path which can raise this error is in the format
6879 # `/something/{target_id}`.
@@ -72,86 +83,100 @@ def target_id(self) -> str:
7283# This is not simulated by the mock.
7384@beartype
7485class DateRangeError (VWSError ): # pragma: no cover
75- """Exception raised when Vuforia returns a response with a result code
86+ """
87+ Exception raised when Vuforia returns a response with a result code
7688 'DateRangeError'.
7789 """
7890
7991
8092# This is not simulated by the mock.
8193@beartype
8294class TargetQuotaReachedError (VWSError ): # pragma: no cover
83- """Exception raised when Vuforia returns a response with a result code
95+ """
96+ Exception raised when Vuforia returns a response with a result code
8497 'TargetQuotaReached'.
8598 """
8699
87100
88101# This is not simulated by the mock.
89102@beartype
90103class ProjectSuspendedError (VWSError ): # pragma: no cover
91- """Exception raised when Vuforia returns a response with a result code
104+ """
105+ Exception raised when Vuforia returns a response with a result code
92106 'ProjectSuspended'.
93107 """
94108
95109
96110# This is not simulated by the mock.
97111@beartype
98112class ProjectHasNoAPIAccessError (VWSError ): # pragma: no cover
99- """Exception raised when Vuforia returns a response with a result code
113+ """
114+ Exception raised when Vuforia returns a response with a result code
100115 'ProjectHasNoAPIAccess'.
101116 """
102117
103118
104119@beartype
105120class ProjectInactiveError (VWSError ):
106- """Exception raised when Vuforia returns a response with a result code
121+ """
122+ Exception raised when Vuforia returns a response with a result code
107123 'ProjectInactive'.
108124 """
109125
110126
111127@beartype
112128class MetadataTooLargeError (VWSError ):
113- """Exception raised when Vuforia returns a response with a result code
129+ """
130+ Exception raised when Vuforia returns a response with a result code
114131 'MetadataTooLarge'.
115132 """
116133
117134
118135@beartype
119136class RequestTimeTooSkewedError (VWSError ):
120- """Exception raised when Vuforia returns a response with a result code
137+ """
138+ Exception raised when Vuforia returns a response with a result code
121139 'RequestTimeTooSkewed'.
122140 """
123141
124142
125143@beartype
126144class TargetNameExistError (VWSError ):
127- """Exception raised when Vuforia returns a response with a result code
145+ """
146+ Exception raised when Vuforia returns a response with a result code
128147 'TargetNameExist'.
129148 """
130149
131150 @property
132151 def target_name (self ) -> str :
133- """The target name which already exists."""
152+ """
153+ The target name which already exists.
154+ """
134155 response_body = self .response .request_body or b""
135156 request_json = json .loads (s = response_body )
136157 return str (object = request_json ["name" ])
137158
138159
139160@beartype
140161class ImageTooLargeError (VWSError ):
141- """Exception raised when Vuforia returns a response with a result code
162+ """
163+ Exception raised when Vuforia returns a response with a result code
142164 'ImageTooLarge'.
143165 """
144166
145167
146168@beartype
147169class TargetStatusNotSuccessError (VWSError ):
148- """Exception raised when Vuforia returns a response with a result code
170+ """
171+ Exception raised when Vuforia returns a response with a result code
149172 'TargetStatusNotSuccess'.
150173 """
151174
152175 @property
153176 def target_id (self ) -> str :
154- """The unknown target ID."""
177+ """
178+ The unknown target ID.
179+ """
155180 path = urlparse (url = self .response .url ).path
156181 # Every HTTP path which can raise this error is in the format
157182 # `/something/{target_id}`.
@@ -160,6 +185,7 @@ def target_id(self) -> str:
160185
161186@beartype
162187class TooManyRequestsError (VWSError ): # pragma: no cover
163- """Exception raised when Vuforia returns a response with a result code
188+ """
189+ Exception raised when Vuforia returns a response with a result code
164190 'TooManyRequests'.
165191 """
0 commit comments