cloudpathlib.exceptions¶
This module contains all custom exceptions in the cloudpathlib library. All exceptions
subclass the CloudPathException base exception to
facilitate catching any exception from this library.
Classes¶
AnyPathTypeError
¶
Bases: CloudPathException, TypeError
Source code in cloudpathlib/exceptions.py
11 12 | |
ClientMismatchError
¶
Bases: CloudPathException, ValueError
Source code in cloudpathlib/exceptions.py
15 16 | |
CloudPathException
¶
Bases: Exception
Base exception for all cloudpathlib custom exceptions.
Source code in cloudpathlib/exceptions.py
7 8 | |
CloudPathFileExistsError
¶
Bases: CloudPathException, FileExistsError
Source code in cloudpathlib/exceptions.py
19 20 | |
CloudPathFileNotFoundError
¶
Bases: CloudPathException, FileNotFoundError
Source code in cloudpathlib/exceptions.py
27 28 | |
CloudPathIsADirectoryError
¶
Bases: CloudPathException, IsADirectoryError
Source code in cloudpathlib/exceptions.py
31 32 | |
CloudPathLocalPathTraversalError
¶
Bases: CloudPathException, ValueError
Raised when a cloud object key contains .. (parent-directory) segments that would map
the cloud path to a local path outside its intended base directory — i.e. outside the local
cache directory or the download destination. Blocked to prevent path traversal.
Source code in cloudpathlib/exceptions.py
55 56 57 58 | |
CloudPathNotADirectoryError
¶
Bases: CloudPathException, NotADirectoryError
Source code in cloudpathlib/exceptions.py
35 36 | |
CloudPathNotExistsError
¶
Bases: CloudPathException
Source code in cloudpathlib/exceptions.py
23 24 | |
CloudPathNotImplementedError
¶
Bases: CloudPathException, NotImplementedError
Source code in cloudpathlib/exceptions.py
39 40 | |
DirectoryNotEmptyError
¶
Bases: CloudPathException
Source code in cloudpathlib/exceptions.py
43 44 | |
IncompleteImplementationError
¶
Bases: CloudPathException, NotImplementedError
Source code in cloudpathlib/exceptions.py
47 48 | |
InvalidConfigurationException
¶
Bases: CloudPathException, ValueError
Source code in cloudpathlib/exceptions.py
61 62 | |
InvalidGlobArgumentsError
¶
Bases: CloudPathException
Source code in cloudpathlib/exceptions.py
92 93 | |
InvalidPrefixError
¶
Bases: CloudPathException, ValueError
Source code in cloudpathlib/exceptions.py
51 52 | |
MissingCredentialsError
¶
Bases: CloudPathException
Source code in cloudpathlib/exceptions.py
65 66 | |
MissingDependenciesError
¶
Bases: CloudPathException, ModuleNotFoundError
Source code in cloudpathlib/exceptions.py
69 70 | |
NoStatError
¶
Bases: CloudPathException
Used if stats cannot be retrieved; e.g., file does not exist or for some backends path is a directory (which doesn't have stats available).
Source code in cloudpathlib/exceptions.py
73 74 75 76 77 | |
OverwriteDirtyFileError
¶
Bases: CloudPathException
Source code in cloudpathlib/exceptions.py
80 81 | |
OverwriteNewerCloudError
¶
Bases: CloudPathException
Source code in cloudpathlib/exceptions.py
84 85 | |
OverwriteNewerLocalError
¶
Bases: CloudPathException
Source code in cloudpathlib/exceptions.py
88 89 | |