Debian Codegraph @

src/globus_sdk/exc/base.py

raw
1 class GlobusError(Exception):
2 """
3 Root of the Globus Exception hierarchy.
4 """
5
6
7 class GlobusSDKUsageError(GlobusError, ValueError):
8 """
9 A ``GlobusSDKUsageError`` may be thrown in cases in which the SDK
10 detects that it is being used improperly.
11
12 These errors typically indicate that some contract regarding SDK usage
13 (e.g. required order of operations) has been violated.
14 """
15
16
17 class ValidationError(GlobusError, ValueError):
18 """
19 A ``ValidationError`` may be raised when the SDK is instructed to handle or
20 parse data which can be seen to be invalid without an external service
21 interaction.
22
23 These errors typically do not indicate a usage error similar to
24 ``GlobusSDKUsageError``, but rather that the data is invalid.
25 """