Exceptions¶
Exceptions:
|
This exception is raised when a checksum verification fails. |
A client-side error occurred.. |
|
|
An exception occurred during a composite operation (e.g. |
Config file not be found. |
|
|
The request timed out while trying to connect to the remote server. |
This exception is raised when the final integrity check (comparing the actual bytes downloaded with the object size in bytes) fails. |
|
This exception is raised by DownloadManager.get_object_to_path and DownloadManager.get_object_to_stream when a download is terminated in between. |
|
|
The config object is missing required keys or contains malformed values. |
Developer Tool Configuration is invalid, or is blocking a service |
|
The value is expected to be a file name but it's not a valid key_file path. |
|
The provided key is not a private key, or the provided passphrase is incorrect. |
|
The ResourceId is missing. |
|
Maximum wait time has been exceeded. |
|
No endpoint value was provided when trying to create a non-regional service client. |
|
The provided key requires a passphrase. |
|
|
Exception thrown when an error with a multipart upload occurs. |
The specified profile was not found in the config file. |
|
|
An exception occurred when making the request |
|
This exception is raised when in a multipart download some parts failed. |
|
The service returned an error response. |
|
A transient service error occurred |
wait_until is not supported by this response. |
- exception oci.exceptions.ChecksumVerificationError(expected_checksum, calculated_checksum)¶
This exception is raised when a checksum verification fails.
- exception oci.exceptions.ClientError¶
A client-side error occurred..
- exception oci.exceptions.CompositeOperationError(partial_results=[], cause=None)¶
An exception occurred during a composite operation (e.g. launching an instance and waiting for state) but part of the composite operation succeeded. This exception has the following attributes:
- Variables
partial_results (list) – Any partial results which are available (e.g. if the
launch_instance()succeeded and the waiting for state failed then this will contain thelaunch_instance()result)cause (Exception) – The exception which caused the composite operation to fail
- exception oci.exceptions.ConfigFileNotFound¶
Config file not be found.
- exception oci.exceptions.ConnectTimeout(*args, **kwargs)¶
The request timed out while trying to connect to the remote server.
Requests that produced this error are safe to retry.
- exception oci.exceptions.DownloadFailedIncorrectDownloadSize(actual_bytes_downloaded, object_size)¶
This exception is raised when the final integrity check (comparing the actual bytes downloaded with the object size in bytes) fails.
- exception oci.exceptions.DownloadTerminated¶
This exception is raised by DownloadManager.get_object_to_path and DownloadManager.get_object_to_stream when a download is terminated in between. This is generally raised when the download manager’s state is changed to -1, indicating that the download is to be terminated.
- exception oci.exceptions.InvalidConfig(errors)¶
The config object is missing required keys or contains malformed values.
For example:
raise InvalidConfig({ "region": "missing", "key_id": "malformed' })
- exception oci.exceptions.InvalidDeveloperToolConfiguration¶
Developer Tool Configuration is invalid, or is blocking a service
- exception oci.exceptions.InvalidKeyFilePath¶
The value is expected to be a file name but it’s not a valid key_file path.
- exception oci.exceptions.InvalidPrivateKey¶
The provided key is not a private key, or the provided passphrase is incorrect.
- exception oci.exceptions.InvalidResourcePrincipalArguments¶
The ResourceId is missing.
- exception oci.exceptions.MaximumWaitTimeExceeded¶
Maximum wait time has been exceeded.
- exception oci.exceptions.MissingEndpointForNonRegionalServiceClientError¶
No endpoint value was provided when trying to create a non-regional service client.
- exception oci.exceptions.MissingPrivateKeyPassphrase¶
The provided key requires a passphrase.
- exception oci.exceptions.MultipartUploadError(**kwargs)¶
Exception thrown when an error with a multipart upload occurs. As multipart uploads can be parallelised, this error contains a collection of errors which caused individual part uploads to fail
- exception oci.exceptions.ProfileNotFound¶
The specified profile was not found in the config file.
- exception oci.exceptions.RequestException(*args, **kwargs)¶
An exception occurred when making the request
- exception oci.exceptions.ResumableDownloadException(namespace_name, bucket_name, object_name, failed_parts, checksum_verifier=None)¶
This exception is raised when in a multipart download some parts failed.
- exception oci.exceptions.ServiceError(status, code, headers, message, **kwargs)¶
The service returned an error response.
- exception oci.exceptions.TransientServiceError(status, code, headers, message, **kwargs)¶
A transient service error occurred
- exception oci.exceptions.WaitUntilNotSupported¶
wait_until is not supported by this response.