You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extract error message handling to _error_handling module (#1988)
Move the _get_error_message function from commands.py to a new _error_handling.py module and make it public as get_error_message. This allows other modules to reuse the error handling logic.
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
AuthenticationFailureError: "The given secret key was incorrect.",
51
+
BadImageError: "Error: The given image is corrupted or the format is not supported.",
52
+
DateRangeError: "Error: There was a problem with the date details given in the request.",
53
+
FailError: "Error: The request made to Vuforia was invalid and could not be processed. Check the given parameters.",
54
+
ImageTooLargeError: "Error: The given image is too large.",
55
+
MetadataTooLargeError: "Error: The given metadata is too large.",
56
+
ServerError: "Error: There was an unknown error from Vuforia. This may be because there is a problem with the given name.",
57
+
ProjectInactiveError: "Error: The project associated with the given keys is inactive.",
58
+
RequestQuotaReachedError: "Error: The maximum number of API calls for this database has been reached.",
59
+
RequestTimeTooSkewedError: "Error: Vuforia reported that the time given with this request was outside the expected range. This may be because the system clock is out of sync.",
60
+
TargetProcessingTimeoutError: "Error: The target processing time has exceeded the allowed limit.",
61
+
TargetQuotaReachedError: "Error: The maximum number of targets for this database has been reached.",
62
+
ProjectSuspendedError: "Error: The request could not be completed because this database has been suspended.",
63
+
ProjectHasNoAPIAccessError: "Error: The request could not be completed because this database is not allowed to make API requests.",
AuthenticationFailureError: "The given secret key was incorrect.",
81
-
BadImageError: "Error: The given image is corrupted or the format is not supported.",
82
-
DateRangeError: "Error: There was a problem with the date details given in the request.",
83
-
FailError: "Error: The request made to Vuforia was invalid and could not be processed. Check the given parameters.",
84
-
ImageTooLargeError: "Error: The given image is too large.",
85
-
MetadataTooLargeError: "Error: The given metadata is too large.",
86
-
ServerError: "Error: There was an unknown error from Vuforia. This may be because there is a problem with the given name.",
87
-
ProjectInactiveError: "Error: The project associated with the given keys is inactive.",
88
-
RequestQuotaReachedError: "Error: The maximum number of API calls for this database has been reached.",
89
-
RequestTimeTooSkewedError: "Error: Vuforia reported that the time given with this request was outside the expected range. This may be because the system clock is out of sync.",
90
-
TargetProcessingTimeoutError: "Error: The target processing time has exceeded the allowed limit.",
91
-
TargetQuotaReachedError: "Error: The maximum number of targets for this database has been reached.",
92
-
ProjectSuspendedError: "Error: The request could not be completed because this database has been suspended.",
93
-
ProjectHasNoAPIAccessError: "Error: The request could not be completed because this database is not allowed to make API requests.",
0 commit comments