HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/botocore/__pycache__/exceptions.cpython-36.pyc
3

�T_�L�@sddlmZddlmZddlmZd�dd�ZGdd�de�ZGd	d
�d
e�Z	Gdd�de	�Z
Gd
d�de�ZGdd�de�ZGdd�de�Z
Gdd�de
�ZGdd�de
ejj�ZGdd�de�ZGdd�deejjejj�ZGdd�de
ejj�ZGdd�de
ejj�ZGdd �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.ee�Z Gd/d0�d0e�Z!Gd1d2�d2e�Z"Gd3d4�d4e�Z#Gd5d6�d6e�Z$Gd7d8�d8e�Z%Gd9d:�d:e�Z&Gd;d<�d<e%�Z'Gd=d>�d>e%�Z(Gd?d@�d@e%�Z)GdAdB�dBe%e�Z*GdCdD�dDe%�Z+GdEdF�dFe�Z,GdGdH�dHe�Z-GdIdJ�dJe�Z.GdKdL�dLe�Z/GdMdN�dNe�Z0GdOdP�dPe�Z1GdQdR�dRe�Z2GdSdT�dTe�Z3GdUdV�dVe�Z4GdWdX�dXe�Z5GdYdZ�dZe�Z6Gd[d\�d\e�Z7Gd]d^�d^e�Z8Gd_d`�d`e8�Z9Gdadb�dbe:�Z;Gdcdd�dde:�Z<Gdedf�dfe�Z=Gdgdh�dhe�Z>Gdidj�dje�Z?Gdkdl�dle�Z@Gdmdn�dne�ZAGdodp�dpe�ZBGdqdr�dre�ZCGdsdt�dte�ZDGdudv�dve�ZEGdwdx�dxe�ZFGdydz�dzeF�ZGGd{d|�d|eF�ZHGd}d~�d~e�ZIGdd��d�e�ZJGd�d��d�e�ZKGd�d��d�eKeL�ZMGd�d��d�eK�ZNGd�d��d�e�ZOGd�d��d�eO�ZPGd�d��d�e�ZQGd�d��d�e�ZRGd�d��d�e�ZSGd�d��d�e�ZTGd�d��d�eT�ZUGd�d��d�e�ZVGd�d��d�eV�ZWGd�d��d�eV�ZXGd�d��d�e�ZYdS)��)�unicode_literals)�requests)�urllib3NcCs"|dkrf}|dkri}|||�S)N�)Z
exception_cls�args�kwargsrr� /usr/lib/python3.6/exceptions.py�_exception_from_packed_argss
r	c@s$eZdZdZdZdd�Zdd�ZdS)�
BotoCoreErrorz~
    The base exception class for BotoCore exceptions.

    :ivar msg: The descriptive message associated with the error.
    zAn unspecified error occurredcKs$|jjf|�}tj||�||_dS)N)�fmt�format�	Exception�__init__r)�selfr�msgrrrr'szBotoCoreError.__init__cCst|jd|jffS)N)r	�	__class__r)rrrr�
__reduce__,szBotoCoreError.__reduce__N)�__name__�
__module__�__qualname__�__doc__rrrrrrrr
sr
c@seZdZdZdZdS)�DataNotFoundErrorz�
    The data associated with a particular path could not be loaded.

    :ivar data_path: The data path that the user attempted to load.
    z$Unable to load data for: {data_path}N)rrrrrrrrrr0src@seZdZdZdZdS)�UnknownServiceErrorzwRaised when trying to load data for an unknown service.

    :ivar service_name: The name of the unknown service.

    zQUnknown service: '{service_name}'. Valid service names are: {known_service_names}N)rrrrrrrrrr9src@seZdZdZdZdS)�ApiVersionNotFoundErrorz�
    The data associated with either the API version or a compatible one
    could not be loaded.

    :ivar data_path: The data path that the user attempted to load.
    :ivar api_version: The API version that the user attempted to load.
    z2Unable to load data {data_path} for: {api_version}N)rrrrrrrrrrDsrcs*eZdZdZd�fdd�	Zdd�Z�ZS)�HTTPClientErrorz5An HTTP Client raised an unhandled exception: {error}Ncs"||_||_tt|�jf|�dS)N)�request�response�superrr)rrrr)rrrrQszHTTPClientError.__init__cCst|j|j|jf|jffS)N)r	rrrr)rrrrrVszHTTPClientError.__reduce__)NN)rrrrrr�
__classcell__rr)rrrOsrc@seZdZdZdS)�ConnectionErrorz8An HTTP Client failed to establish a connection: {error}N)rrrrrrrrr[src@seZdZdZdS)�EndpointConnectionErrorz7Could not connect to the endpoint URL: "{endpoint_url}"N)rrrrrrrrr _sr c@seZdZdZdS)�SSLErrorz0SSL validation failed for {endpoint_url} {error}N)rrrrrrrrr!csr!c@seZdZdZdS)�ConnectionClosedErrorz^Connection was closed before we received a valid response from endpoint URL: "{endpoint_url}".N)rrrrrrrrr"gsr"c@seZdZdZdS)�ReadTimeoutErrorz.Read timeout on endpoint URL: "{endpoint_url}"N)rrrrrrrrr#msr#c@seZdZdZdS)�ConnectTimeoutErrorz1Connect timeout on endpoint URL: "{endpoint_url}"N)rrrrrrrrr$rsr$c@seZdZdZdS)�ProxyConnectionErrorz-Failed to connect to proxy URL: "{proxy_url}"N)rrrrrrrrr%vsr%c@seZdZdZdZdS)�NoCredentialsErrorz(
    No credentials could be found.
    zUnable to locate credentialsN)rrrrrrrrrr&zsr&c@seZdZdZdZdS)�PartialCredentialsErrorzj
    Only partial credentials were found.

    :ivar cred_var: The missing credential variable name.

    z<Partial credentials found in {provider}, missing: {cred_var}N)rrrrrrrrrr'�sr'c@seZdZdZdZdS)�CredentialRetrievalErrorz�
    Error attempting to retrieve credentials from a remote source.

    :ivar provider: The name of the credential provider.
    :ivar error_msg: The msg explaining why credentials could not be
        retrieved.

    z>Error when retrieving credentials from {provider}: {error_msg}N)rrrrrrrrrr(�sr(c@seZdZdZdZdS)�UnknownSignatureVersionErrorz~
    Requested Signature Version is not known.

    :ivar signature_version: The name of the requested signature version.
    z/Unknown Signature Version: {signature_version}.N)rrrrrrrrrr)�sr)c@seZdZdZdZdS)�ServiceNotInRegionErrorz�
    The service is not available in requested region.

    :ivar service_name: The name of the service.
    :ivar region_name: The name of the region.
    z<Service {service_name} not available in region {region_name}N)rrrrrrrrrr*�sr*c@seZdZdZdS)�BaseEndpointResolverErrorz�Base error for endpoint resolving errors.

    Should never be raised directly, but clients can catch
    this exception if they want to generically handle any errors
    during the endpoint resolution process.

    N)rrrrrrrrr+�sr+c@seZdZdZdZdS)�
NoRegionErrorzNo region was specified.zYou must specify a region.N)rrrrrrrrrr,�sr,c@seZdZdZdZdS)�UnknownEndpointErrorz�
    Could not construct an endpoint.

    :ivar service_name: The name of the service.
    :ivar region_name: The name of the region.
    zJUnable to construct an endpoint for {service_name} in region {region_name}N)rrrrrrrrrr-�sr-c@seZdZdZdZdS)�ProfileNotFoundz�
    The specified configuration profile was not found in the
    configuration file.

    :ivar profile: The name of the profile the user attempted to load.
    z1The config profile ({profile}) could not be foundN)rrrrrrrrrr.�sr.c@seZdZdZdZdS)�ConfigParseErrorzj
    The configuration file could not be parsed.

    :ivar path: The path to the configuration file.
    z#Unable to parse config file: {path}N)rrrrrrrrrr/�sr/c@seZdZdZdZdS)�ConfigNotFoundzs
    The specified configuration file could not be found.

    :ivar path: The path to the configuration file.
    z6The specified config file ({path}) could not be found.N)rrrrrrrrrr0�sr0c@seZdZdZdZdS)�MissingParametersErrorax
    One or more required parameters were not supplied.

    :ivar object: The object that has missing parameters.
        This can be an operation or a parameter (in the
        case of inner params).  The str() of this object
        will be used so it doesn't need to implement anything
        other than str().
    :ivar missing: The names of the missing parameters.
    zJThe following required parameters are missing for {object_name}: {missing}N)rrrrrrrrrr1�s
r1c@seZdZdZdZdS)�ValidationErrora3
    An exception occurred validating parameters.

    Subclasses must accept a ``value`` and ``param``
    argument in their ``__init__``.

    :ivar value: The value that was being validated.
    :ivar param: The parameter that failed validation.
    :ivar type_name: The name of the underlying type.
    z@Invalid value ('{value}') for param {param} of type {type_name} N)rrrrrrrrrr2�s
r2c@seZdZdZdS)�ParamValidationErrorz%Parameter validation failed:
{report}N)rrrrrrrrr3�sr3c@seZdZdZdZdS)�UnknownKeyErrorz�
    Unknown key in a struct parameter.

    :ivar value: The value that was being checked.
    :ivar param: The name of the parameter.
    :ivar choices: The valid choices the value can be.
    zEUnknown key '{value}' for param '{param}'.  Must be one of: {choices}N)rrrrrrrrrr4sr4c@seZdZdZdZdS)�
RangeErrora
    A parameter value was out of the valid range.

    :ivar value: The value that was being checked.
    :ivar param: The parameter that failed validation.
    :ivar min_value: The specified minimum value.
    :ivar max_value: The specified maximum value.
    zKValue out of range for param {param}: {min_value} <= {value} <= {max_value}N)rrrrrrrrrr5sr5c@seZdZdZdZdS)�UnknownParameterErrorz�
    Unknown top level parameter.

    :ivar name: The name of the unknown parameter.
    :ivar operation: The name of the operation.
    :ivar choices: The valid choices the parameter name can be.
    zPUnknown parameter '{name}' for operation {operation}.  Must be one of: {choices}N)rrrrrrrrrr6sr6c@seZdZdZdZdS)�InvalidRegionErrorz{
    Invalid region_name provided to client or resource.

    :ivar region_name: region_name that was being validated.
    zFProvided region_name '{region_name}' doesn't match a supported format.N)rrrrrrrrrr7-sr7c@seZdZdZdZdS)�AliasConflictParameterErrorz�
    Error when an alias is provided for a parameter as well as the original.

    :ivar original: The name of the original parameter.
    :ivar alias: The name of the alias
    :ivar operation: The name of the operation.
    zvParameter '{original}' and its alias '{alias}' were provided for operation {operation}.  Only one of them may be used.N)rrrrrrrrrr88sr8c@seZdZdZdZdS)�UnknownServiceStylez]
    Unknown style of service invocation.

    :ivar service_style: The style requested.
    z6The service style ({service_style}) is not understood.N)rrrrrrrrrr9Fsr9c@seZdZdZdS)�PaginationErrorz"Error during pagination: {message}N)rrrrrrrrr:Osr:c@seZdZdZdS)�OperationNotPageableErrorz/Operation cannot be paginated: {operation_name}N)rrrrrrrrr;Ssr;c@seZdZdZdZdS)�
ChecksumErrorzBThe expected checksum did not match the calculated checksum.

    z{Checksum {checksum_type} failed, expected checksum {expected_checksum} did not match calculated checksum {actual_checksum}.N)rrrrrrrrrr<Wsr<c@seZdZdZdZdS)�UnseekableStreamErrorzANeed to seek a stream, but stream does not support seeking.

    zFNeed to rewind the stream {stream_object}, but stream is not seekable.N)rrrrrrrrrr=`sr=cs$eZdZdZdZ�fdd�Z�ZS)�WaiterErrorz%Waiter failed to reach desired state.zWaiter {name} failed: {reason}cstt|�j||d�||_dS)N)�name�reason)rr>r�
last_response)rr?r@rA)rrrrlszWaiterError.__init__)rrrrrrrrr)rrr>hsr>c@seZdZdZdZdS)�IncompleteReadErrorz6HTTP response did not return expected number of bytes.zB{actual_bytes} read, but total bytes expected is {expected_bytes}.N)rrrrrrrrrrBqsrBc@seZdZdZdZdS)�InvalidExpressionErrorz,Expression is either invalid or too complex.zCInvalid expression {expression}: Only dotted lookups are supported.N)rrrrrrrrrrCwsrCc@seZdZdZdZdS)�UnknownCredentialErrorz=Tried to insert before/after an unregistered credential type.z"Credential named {name} not found.N)rrrrrrrrrrD|srDc@seZdZdZdZdS)�WaiterConfigErrorz+Error when processing waiter configuration.z+Error processing waiter config: {error_msg}N)rrrrrrrrrrE�srEc@seZdZdZdZdS)�UnknownClientMethodErrorzEError when trying to access a method on a client that does not exist.z*Client does not have method: {method_name}N)rrrrrrrrrrF�srFc@seZdZdZdZdS)� UnsupportedSignatureVersionErrorz:Error when trying to use an unsupported Signature Version.z7Signature version is not supported: {signature_version}N)rrrrrrrrrrG�srGcs0eZdZdZ�fdd�Zdd�Zdd�Z�ZS)�ClientErrorziAn error occurred ({error_code}) when calling the {operation_name} operation{retry_info}: {error_message}csZ|j|�}|jdi�}|jj|jdd�|jdd�||d�}tt|�j|�||_||_dS)N�ErrorZCodeZUnknownZMessage)Z
error_codeZ
error_message�operation_name�
retry_info)	�_get_retry_info�get�MSG_TEMPLATErrrHrrrJ)rZerror_responserJrK�errorr)rrrr�s


zClientError.__init__cCs8d}d|kr4|d}|jdd�r4d|kr4d|d}|S)N�ZResponseMetadataZMaxAttemptsReachedFZ
RetryAttemptsz (reached max retries: %s))rM)rrrKZmetadatarrrrL�s
zClientError._get_retry_infocCst|j|jffS)N)rHrrJ)rrrrr�szClientError.__reduce__)rrrrNrrLrrrr)rrrH�s

rHc@seZdZdS)�EventStreamErrorN)rrrrrrrrQ�srQc@seZdZdZdS)�UnsupportedTLSVersionWarningz:Warn when an openssl version that uses TLS 1.2 is requiredN)rrrrrrrrrR�srRc@seZdZdS)�ImminentRemovalWarningN)rrrrrrrrS�srSc@seZdZdZdZdS)�InvalidDNSNameErrorzEError when virtual host path is forced on a non-DNS compatible bucketaBucket named {bucket_name} is not DNS compatible. Virtual hosted-style addressing cannot be used. The addressing style can be configured by removing the addressing_style value or setting that value to 'path' or 'auto' in the AWS Config file or in the botocore.client.Config object.N)rrrrrrrrrrT�srTc@seZdZdZdZdS)�InvalidS3AddressingStyleErrorz-Error when an invalid path style is specifiedzfS3 addressing style {s3_addressing_style} is invalid. Valid options are: 'auto', 'virtual', and 'path'N)rrrrrrrrrrU�srUc@seZdZdZdZdS)�UnsupportedS3ArnErrorz?Error when S3 ARN provided to Bucket parameter is not supportedzeS3 ARN {arn} provided to "Bucket" parameter is invalid. Only ARNs for S3 access-points are supported.N)rrrrrrrrrrV�srVc@seZdZdZdZdS)�UnsupportedS3ControlArnErrorzCError when S3 ARN provided to S3 control parameter is not supportedz<S3 ARN "{arn}" provided is invalid for this operation. {msg}N)rrrrrrrrrrW�srWc@seZdZdZdZdS)�InvalidHostLabelErrorz>Error when an invalid host label would be bound to an endpointzJInvalid host label to be bound to the hostname of the endpoint: "{label}".N)rrrrrrrrrrX�srXc@seZdZdZdZdS)�UnsupportedOutpostResourceErrorzDError when S3 Outpost ARN provided to Bucket parameter is incompletez�S3 Outpost ARN resource "{resource_name}" provided to "Bucket" parameter is invalid. Only ARNs for S3 Outpost arns with an access-point sub-resource are supported.N)rrrrrrrrrrY�srYc@seZdZdZdZdS)�*UnsupportedS3AccesspointConfigurationErrorzBError when an unsupported configuration is used with access-pointsz<Unsupported configuration when using S3 access-points: {msg}N)rrrrrrrrrrZ�srZc@seZdZdZdZdS)�*InvalidEndpointDiscoveryConfigurationErrorz@Error when invalid value supplied for endpoint_discovery_enabledz�Unsupported configuration value for endpoint_discovery_enabled. Expected one of ("true", "false", "auto") but got {config_value}.N)rrrrrrrrrr[�sr[c@seZdZdZdZdS)�&UnsupportedS3ControlConfigurationErrorz?Error when an unsupported configuration is used with S3 Controlz6Unsupported configuration when using S3 Control: {msg}N)rrrrrrrrrr\sr\c@seZdZdZdZdS)�InvalidRetryConfigurationErrorz3Error when invalid retry configuration is specifiedzuCannot provide retry configuration for "{retry_config_option}". Valid retry configuration options are: 'max_attempts'N)rrrrrrrrrr]sr]c@seZdZdZdZdS)�InvalidMaxRetryAttemptsErrorz3Error when invalid retry configuration is specifiedzrValue provided to "max_attempts": {provided_max_attempts} must be an integer greater than or equal to {min_value}.N)rrrrrrrrrr^sr^c@seZdZdZdZdS)�InvalidRetryModeErrorz8Error when invalid retry mode configuration is specifiedzjInvalid value provided to "mode": "{provided_retry_mode}" must be one of: "legacy", "standard", "adaptive"N)rrrrrrrrrr_sr_c@seZdZdZdZdS)�+InvalidS3UsEast1RegionalEndpointConfigErrorz?Error for invalid s3 us-east-1 regional endpoints configurationz�S3 us-east-1 regional endpoint option {s3_us_east_1_regional_endpoint_config} is invalid. Valid options are: "legacy", "regional"N)rrrrrrrrrr`sr`c@seZdZdZdZdS)�&InvalidSTSRegionalEndpointsConfigErrorzDError when invalid sts regional endpoints configuration is specifiedzqSTS regional endpoints option {sts_regional_endpoints_config} is invalid. Valid options are: "legacy", "regional"N)rrrrrrrrrra(srac@seZdZdZdS)�StubResponseErrorzDError getting response stub for operation {operation_name}: {reason}N)rrrrrrrrrb0srbc@seZdZdS)�StubAssertionErrorN)rrrrrrrrc4srcc@seZdZdS)�UnStubbedResponseErrorN)rrrrrrrrd8srdc@seZdZdZdS)�InvalidConfigErrorz{error_msg}N)rrrrrrrrre<srec@seZdZdZdS)�InfiniteLoopConfigErrorz�Infinite loop in credential configuration detected. Attempting to load from profile {source_profile} which has already been visited. Visited profiles: {visited_profiles}N)rrrrrrrrrf@srfc@seZdZdZdS)�RefreshWithMFAUnsupportedErrorz/Cannot refresh credentials: MFA token required.N)rrrrrrrrrgHsrgc@seZdZdZdS)�MD5UnavailableErrorz,This system does not support MD5 generation.N)rrrrrrrrrhLsrhc@seZdZdZdS)�MetadataRetrievalErrorz&Error retrieving metadata: {error_msg}N)rrrrrrrrriPsric@seZdZdS)�UndefinedModelAttributeErrorN)rrrrrrrrjTsrjc@seZdZdZdd�ZdS)�MissingServiceIdErrorzrThe model being used for the service {service_name} is missing the serviceId metadata property, which is required.cKs$|jjf|�}tj||�||_dS)N)rrr
rr)rrrrrrr^szMissingServiceIdError.__init__N)rrrrrrrrrrkXsrkc@seZdZdZdS)�SSOErrorz<An unspecified error happened when resolving SSO credentialsN)rrrrrrrrrldsrlc@seZdZdZdS)�SSOTokenLoadErrorz$Error loading SSO Token: {error_msg}N)rrrrrrrrrmhsrmc@seZdZdZdS)�UnauthorizedSSOTokenErrorz�The SSO session associated with this profile has expired or is otherwise invalid. To refresh this SSO session run aws sso login with the corresponding profile.N)rrrrrrrrrnlsrnc@seZdZdZdS)�CapacityNotAvailableErrorz(Insufficient request capacity available.N)rrrrrrrrrotsro)NN)ZZ
__future__rZbotocore.vendoredrZ#botocore.vendored.requests.packagesrr	r
r
rrrrrr �
exceptionsr!r"ZReadTimeoutr#ZConnectTimeoutr$Z
ProxyErrorr%r&r'r(r)r*r+r,�
ValueErrorr-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<r=r>rBrCrDrErFrGrHrQ�WarningrRrSrTrUrVrWrXrYrZr[r\r]r^r_r`rarb�AssertionErrorrcrdrerfrgrhrirjrkrlrmrnrorrrr�<module>s�
	

	


		
			#