HEX
Server: Apache
System: Linux box5514.bluehost.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User: smqcdvmy (3893)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/oci/__pycache__/exceptions.cpython-39.pyc
a

���f�"�@s�ddlZddlZddlmZddlmZddlmZ	de��Z
e��Zde
�de�d	�ZGd
d�de
�ZGdd
�d
e�ZGdd�de
�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGd d!�d!e�ZGd"d#�d#e�ZGd$d%�d%e
�ZGd&d'�d'e
�ZGd(d)�d)e�ZGd*d+�d+e	�ZGd,d-�d-e�ZGd.d/�d/e
�ZGd0d1�d1e
�Z Gd2d3�d3e
�Z!dS)4�N�)�__version__)�RequestException)�ConnectTimeoutzOracle-PythonSDK/zClient Version: z, OS Version: z�, See https://docs.oracle.com/iaas/Content/API/Concepts/sdk_troubleshooting.htm for common issues and steps to resolve them. If you need to contact support, or file a GitHub issue, please include this full error message.cs(eZdZdZ�fdd�Zdd�Z�ZS)�ServiceErrorz'The service returned an error response.csx||_||_||_||_|�d�|_|��|_|�d�|_|�d�|_	|�d�|_
|�d�|_|�d�|_|�d�|_
dt|j��d	t|j��d
t|����d�}d|j
�d
�}|s�d|j}|j
|||j||j|j
|j|jdd�
}|j	�r|�d|j	�d|��|d<n|�d|��|d<t|�d�t��rdtj�|�d��}	|	��D]\}
}|
|v�rF|||
<�qFtt|��|�dS)N�original_request�operation_name�api_reference_link�target_service�request_endpoint�client_version�	timestampzPSee https://docs.oracle.com/iaas/Content/API/References/apierrors.htm#apierrors_�__�_z1 for more information about resolving this error.z"If you are unable to resolve this zO issue, please contact Oracle support and provide them this full error message.z"The service returned error code %sz�To get more info on the failing request, refer to https://docs.oracle.com/en-us/iaas/tools/python/latest/logging.html for ways to log the request/response details.)
r
�status�code�opc-request-id�messagerr
rrZlogging_tipsz
 Also see z/ for details on this operation's requirements. Ztroubleshooting_tips� �deserialized_data)rr�headersr�getr�_get_opc_request_idZ
request_idrr	r
rrr
�str�lower�
isinstance�dict�oci�utilZcamel_to_snake_keys�items�superr�__init__)�selfrrrr�kwargsZapi_errors_infoZcontact_infoZ
error_detailsr�key�value��	__class__��2/usr/lib/python3.9/site-packages/oci/exceptions.pyr!sH
,
�

zServiceError.__init__cCs<|j�d�r|j�d�S|jr4|jjr4|jj�d�SdSdS)Nr)rrrZ
header_params�r"r(r(r)rBs
z ServiceError._get_opc_request_id)�__name__�
__module__�__qualname__�__doc__r!r�
__classcell__r(r(r&r)rs0rc@seZdZdZdS)�TransientServiceErrorz"A transient service error occurredN�r+r,r-r.r(r(r(r)r0Ksr0c@seZdZdZdS)�ClientErrorzA client-side error occurred..Nr1r(r(r(r)r2Osr2c@seZdZdZdS)�ConfigFileNotFoundzConfig file not be found.Nr1r(r(r(r)r3Ssr3c@s eZdZdZdd�Zdd�ZdS)�
InvalidConfigz�The config object is missing required keys or contains malformed values.

    For example:

    .. code-block:: python

        raise InvalidConfig({
            "region": "missing",
            "key_id": "malformed'
        })
    cCs
||_dS)z':param errors: {config key: error code}N)�errors)r"r5r(r(r)r!cszInvalidConfig.__init__cCs
t|j�S�N)rr5r*r(r(r)�__str__gszInvalidConfig.__str__N)r+r,r-r.r!r7r(r(r(r)r4Wsr4c@seZdZdZdS)�InvalidAlloyConfigz1Alloy config is invalid, or is blocking a serviceNr1r(r(r(r)r8ksr8c@seZdZdZdS)�!InvalidResourcePrincipalArgumentszThe ResourceId is missing.Nr1r(r(r(r)r9osr9c@seZdZdZdS)�InvalidPrivateKeyzOThe provided key is not a private key, or the provided passphrase is incorrect.Nr1r(r(r(r)r:ssr:c@seZdZdZdS)�MissingPrivateKeyPassphrasez'The provided key requires a passphrase.Nr1r(r(r(r)r;wsr;c@seZdZdZdS)�InvalidKeyFilePathzKThe value is expected to be a file name but it's not a valid key_file path.Nr1r(r(r(r)r<{sr<c@seZdZdZdS)�ProfileNotFoundz7The specified profile was not found in the config file.Nr1r(r(r(r)r=sr=c@seZdZdZdS)�WaitUntilNotSupportedz-wait_until is not supported by this response.Nr1r(r(r(r)r>�sr>c@seZdZdZdS)�MaximumWaitTimeExceededz$Maximum wait time has been exceeded.Nr1r(r(r(r)r?�sr?cs eZdZdZ�fdd�Z�ZS)�MultipartUploadErrorz�
    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
    csRg|_d|vr0|d��s0|j�|d���qdt��|_tt|��|j�dS)z�
        :param queue error_causes_queue:
            A queue containing errors which occured during the multipart upload
        Zerror_causes_queuez-MultipartUploadError exception has occurred. N)	Zerror_causes�empty�appendr�$UPLOAD_MANAGER_DEBUG_INFORMATION_LOGrr �	Exceptionr!)r"r#r&r(r)r!�szMultipartUploadError.__init__)r+r,r-r.r!r/r(r(r&r)r@�sr@c@seZdZdZgdfdd�ZdS)�CompositeOperationErrora-
    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:

    :var list partial_results: Any partial results which are available (e.g. if the :py:meth:`~oci.core.ComputeClient.launch_instance` succeeded and the waiting for state failed then this will contain the :py:meth:`~oci.core.ComputeClient.launch_instance` result)
    :var Exception cause: The exception which caused the composite operation to fail
    NcCs||_||_dSr6)�partial_results�cause)r"rFrGr(r(r)r!�sz CompositeOperationError.__init__�r+r,r-r.r!r(r(r(r)rE�srEc@seZdZdZdS)rz-An exception occurred when making the requestNr1r(r(r(r)r�src@seZdZdZdS)rz�The request timed out while trying to connect to the remote server.

    Requests that produced this error are safe to retry.
    Nr1r(r(r(r)r�src@seZdZdZdS)�/MissingEndpointForNonRegionalServiceClientErrorzXNo endpoint value was provided when trying to create a non-regional service client.
    Nr1r(r(r(r)rI�srIc@seZdZdZdS)�DownloadTerminateda"
    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.
    Nr1r(r(r(r)rJ�srJc@seZdZdZdd�ZdS)�ResumableDownloadExceptionzR
    This exception is raised when in a multipart download some parts failed.
    cCs||_||_||_||_dSr6)�namespace_name�bucket_name�object_name�failed_parts)r"rLrMrNrOr(r(r)r!�sz#ResumableDownloadException.__init__NrHr(r(r(r)rK�srKc@seZdZdZdd�ZdS)�#DownloadFailedIncorrectDownloadSizez�
    This exception is raised when the final integrity check (comparing the actual bytes downloaded with the object size
    in bytes) fails.
    cCs"||_||_d|�d|��|_dS)NzDThe downloaded file didn't match the object size in bytes: expected z, got )�actual_bytes_downloaded�object_sizer)r"rQrRr(r(r)r!�s
�z,DownloadFailedIncorrectDownloadSize.__init__NrHr(r(r(r)rP�srP)"�platformZoci.utilr�versionrZoci._vendor.requests.exceptionsrZBaseRequestExceptionrZBaseConnectTimeoutZCLIENT_VERSIONZ
OS_VERSIONrCrDrr0r2r3r4r8r9r:r;r<r=r>r?r@rE�
ValueErrorrIrJrKrPr(r(r(r)�<module>s8
<