1414
1515@beartype
1616class UnknownTargetError (VWSError ):
17- """
18- Exception raised when Vuforia returns a response with a result code
17+ """Exception raised when Vuforia returns a response with a result code
1918 'UnknownTarget'.
2019 """
2120
2221 @property
2322 def target_id (self ) -> str :
24- """
25- The unknown target ID.
26- """
23+ """The unknown target ID."""
2724 path = urlparse (url = self .response .url ).path
2825 # Every HTTP path which can raise this error is in the format
2926 # `/something/{target_id}`.
@@ -32,48 +29,40 @@ def target_id(self) -> str:
3229
3330@beartype
3431class FailError (VWSError ):
35- """
36- Exception raised when Vuforia returns a response with a result code 'Fail'.
37- """
32+ """Exception raised when Vuforia returns a response with a result code 'Fail'."""
3833
3934
4035@beartype
4136class BadImageError (VWSError ):
42- """
43- Exception raised when Vuforia returns a response with a result code
37+ """Exception raised when Vuforia returns a response with a result code
4438 'BadImage'.
4539 """
4640
4741
4842@beartype
4943class AuthenticationFailureError (VWSError ):
50- """
51- Exception raised when Vuforia returns a response with a result code
44+ """Exception raised when Vuforia returns a response with a result code
5245 'AuthenticationFailure'.
5346 """
5447
5548
5649# See https://github.com/VWS-Python/vws-python/issues/822.
5750@beartype
5851class RequestQuotaReachedError (VWSError ): # pragma: no cover
59- """
60- Exception raised when Vuforia returns a response with a result code
52+ """Exception raised when Vuforia returns a response with a result code
6153 'RequestQuotaReached'.
6254 """
6355
6456
6557@beartype
6658class TargetStatusProcessingError (VWSError ):
67- """
68- Exception raised when Vuforia returns a response with a result code
59+ """Exception raised when Vuforia returns a response with a result code
6960 'TargetStatusProcessing'.
7061 """
7162
7263 @property
7364 def target_id (self ) -> str :
74- """
75- The processing target ID.
76- """
65+ """The processing target ID."""
7766 path = urlparse (url = self .response .url ).path
7867 # Every HTTP path which can raise this error is in the format
7968 # `/something/{target_id}`.
@@ -83,100 +72,86 @@ def target_id(self) -> str:
8372# This is not simulated by the mock.
8473@beartype
8574class DateRangeError (VWSError ): # pragma: no cover
86- """
87- Exception raised when Vuforia returns a response with a result code
75+ """Exception raised when Vuforia returns a response with a result code
8876 'DateRangeError'.
8977 """
9078
9179
9280# This is not simulated by the mock.
9381@beartype
9482class TargetQuotaReachedError (VWSError ): # pragma: no cover
95- """
96- Exception raised when Vuforia returns a response with a result code
83+ """Exception raised when Vuforia returns a response with a result code
9784 'TargetQuotaReached'.
9885 """
9986
10087
10188# This is not simulated by the mock.
10289@beartype
10390class ProjectSuspendedError (VWSError ): # pragma: no cover
104- """
105- Exception raised when Vuforia returns a response with a result code
91+ """Exception raised when Vuforia returns a response with a result code
10692 'ProjectSuspended'.
10793 """
10894
10995
11096# This is not simulated by the mock.
11197@beartype
11298class ProjectHasNoAPIAccessError (VWSError ): # pragma: no cover
113- """
114- Exception raised when Vuforia returns a response with a result code
99+ """Exception raised when Vuforia returns a response with a result code
115100 'ProjectHasNoAPIAccess'.
116101 """
117102
118103
119104@beartype
120105class ProjectInactiveError (VWSError ):
121- """
122- Exception raised when Vuforia returns a response with a result code
106+ """Exception raised when Vuforia returns a response with a result code
123107 'ProjectInactive'.
124108 """
125109
126110
127111@beartype
128112class MetadataTooLargeError (VWSError ):
129- """
130- Exception raised when Vuforia returns a response with a result code
113+ """Exception raised when Vuforia returns a response with a result code
131114 'MetadataTooLarge'.
132115 """
133116
134117
135118@beartype
136119class RequestTimeTooSkewedError (VWSError ):
137- """
138- Exception raised when Vuforia returns a response with a result code
120+ """Exception raised when Vuforia returns a response with a result code
139121 'RequestTimeTooSkewed'.
140122 """
141123
142124
143125@beartype
144126class TargetNameExistError (VWSError ):
145- """
146- Exception raised when Vuforia returns a response with a result code
127+ """Exception raised when Vuforia returns a response with a result code
147128 'TargetNameExist'.
148129 """
149130
150131 @property
151132 def target_name (self ) -> str :
152- """
153- The target name which already exists.
154- """
133+ """The target name which already exists."""
155134 response_body = self .response .request_body or b""
156135 request_json = json .loads (s = response_body )
157136 return str (object = request_json ["name" ])
158137
159138
160139@beartype
161140class ImageTooLargeError (VWSError ):
162- """
163- Exception raised when Vuforia returns a response with a result code
141+ """Exception raised when Vuforia returns a response with a result code
164142 'ImageTooLarge'.
165143 """
166144
167145
168146@beartype
169147class TargetStatusNotSuccessError (VWSError ):
170- """
171- Exception raised when Vuforia returns a response with a result code
148+ """Exception raised when Vuforia returns a response with a result code
172149 'TargetStatusNotSuccess'.
173150 """
174151
175152 @property
176153 def target_id (self ) -> str :
177- """
178- The unknown target ID.
179- """
154+ """The unknown target ID."""
180155 path = urlparse (url = self .response .url ).path
181156 # Every HTTP path which can raise this error is in the format
182157 # `/something/{target_id}`.
@@ -185,7 +160,6 @@ def target_id(self) -> str:
185160
186161@beartype
187162class TooManyRequestsError (VWSError ): # pragma: no cover
188- """
189- Exception raised when Vuforia returns a response with a result code
163+ """Exception raised when Vuforia returns a response with a result code
190164 'TooManyRequests'.
191165 """
0 commit comments