Exceptions
synapseclient.core.exceptions
¶
Contains all of the exceptions that can be thrown within this Python client as well as handling error cases for HTTP requests.
Classes¶
SynapseError
¶
Bases: Exception
Generic exception thrown by the client.
Source code in synapseclient/core/exceptions.py
13 14 | |
SynapseMd5MismatchError
¶
Bases: SynapseError, IOError
Error raised when MD5 computed for a download file fails to match the MD5 of its file handle.
Source code in synapseclient/core/exceptions.py
17 18 | |
SynapseFileNotFoundError
¶
Bases: SynapseError
Error thrown when a local file is not found in Synapse.
Source code in synapseclient/core/exceptions.py
21 22 | |
SynapseNotFoundError
¶
Bases: SynapseError
Error thrown when a requested resource is not found in Synapse.
Source code in synapseclient/core/exceptions.py
25 26 | |
SynapseTimeoutError
¶
Bases: SynapseError
Timed out waiting for response from Synapse.
Source code in synapseclient/core/exceptions.py
29 30 | |
SynapseAuthenticationError
¶
Bases: SynapseError
Authentication errors.
Source code in synapseclient/core/exceptions.py
33 34 | |
SynapseAuthorizationError
¶
Bases: SynapseError
Authorization errors.
Source code in synapseclient/core/exceptions.py
37 38 | |
SynapseNoCredentialsError
¶
Bases: SynapseAuthenticationError
No credentials for authentication
Source code in synapseclient/core/exceptions.py
41 42 | |
SynapseFileCacheError
¶
Bases: SynapseError
Error related to local file storage.
Source code in synapseclient/core/exceptions.py
45 46 | |
SynapseMalformedEntityError
¶
Bases: SynapseError
Unexpected structure of Entities.
Source code in synapseclient/core/exceptions.py
49 50 | |
SynapseUnmetAccessRestrictions
¶
Bases: SynapseError
Request cannot be completed due to unmet access restrictions.
Source code in synapseclient/core/exceptions.py
53 54 | |
SynapseProvenanceError
¶
Bases: SynapseError
Incorrect usage of provenance objects.
Source code in synapseclient/core/exceptions.py
57 58 | |
SynapseHTTPError
¶
Bases: SynapseError, HTTPError
Wraps recognized HTTP errors. See
HTTPError <http://docs.python-requests.org/en/latest/api/?highlight=exceptions#requests.exceptions.HTTPError>_
Source code in synapseclient/core/exceptions.py
61 62 63 64 | |
SynapseUploadAbortedException
¶
Bases: SynapseError
Raised when a worker thread detects the upload was aborted and stops further processing.
Source code in synapseclient/core/exceptions.py
67 68 69 | |
SynapseDownloadAbortedException
¶
Bases: SynapseError
Raised when a worker thread detects the download was aborted and stops further processing.
Source code in synapseclient/core/exceptions.py
72 73 74 | |
SynapseUploadFailedException
¶
Bases: SynapseError
Raised when an upload failed. Should be chained to a cause Exception
Source code in synapseclient/core/exceptions.py
77 78 | |