B \>@sddlmZddlmZddlmZdddZGdddeZGd d d eZ Gd d d e Z Gd ddeZ GdddeZ GdddeZ Gddde ZGddde ejjZGddde ZGddde ejjejjZGddde ejjZGddde ejjZGdd d eZGd!d"d"eZGd#d$d$eZGd%d&d&eZGd'd(d(eZGd)d*d*eZGd+d,d,eZGd-d.d.eeZ Gd/d0d0eZ!Gd1d2d2eZ"Gd3d4d4eZ#Gd5d6d6eZ$Gd7d8d8eZ%Gd9d:d:eZ&Gd;d<dd>e%Z(Gd?d@d@e%Z)GdAdBdBe%Z*GdCdDdDeZ+GdEdFdFeZ,GdGdHdHeZ-GdIdJdJeZ.GdKdLdLeZ/GdMdNdNeZ0GdOdPdPeZ1GdQdRdReZ2GdSdTdTeZ3GdUdVdVeZ4GdWdXdXeZ5GdYdZdZeZ6Gd[d\d\eZ7Gd]d^d^e7Z8Gd_d`d`e9Z:Gdadbdbe9Z;GdcddddeZGdidjdje>Z?GdkdldleZ@Gdmdndne@eAZBGdodpdpe@ZCGdqdrdreZDGdsdtdteDZEGdudvdveZFGdwdxdxeZGGdydzdzeZHGd{d|d|eZIGd}d~d~eIZJdS))unicode_literals)requests)urllib3NcCs"|dkr d}|dkri}|||S)Nr)Z exception_clsargskwargsrr7/tmp/pip-build-uw_ogi45/botocore/botocore/exceptions.py_exception_from_packed_argss r c@s$eZdZdZdZddZddZdS) BotoCoreErrorz~ The base exception class for BotoCore exceptions. :ivar msg: The descriptive message associated with the error. zAn unspecified error occurredcKs$|jjf|}t||||_dS)N)fmtformat Exception__init__r)selfrmsgrrrr's zBotoCoreError.__init__cCst|jd|jffS)N)r __class__r)rrrr __reduce__,szBotoCoreError.__reduce__N)__name__ __module__ __qualname____doc__r rrrrrrr sr c@seZdZdZdZdS)DataNotFoundErrorz The data associated with a particular path could not be loaded. :ivar path: The data path that the user attempted to load. z$Unable to load data for: {data_path}N)rrrrr rrrrr0src@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)rrrrr rrrrr9src@seZdZdZdZdS)ApiVersionNotFoundErrorz The data associated with either that API version or a compatible one could not be loaded. :ivar path: The data path that the user attempted to load. :ivar path: The API version that the user attempted to load. z2Unable to load data {data_path} for: {api_version}N)rrrrr rrrrrDsrcs*eZdZdZdfdd ZddZZS)HTTPClientErrorz6An HTTP Client raised and unhandled exception: {error}Nc s"||_||_tt|jf|dS)N)requestresponsesuperrr)rrrr)rrrrQszHTTPClientError.__init__cCst|j|j|jf|jffS)N)r rrrr)rrrrrVszHTTPClientError.__reduce__)NN)rrrr rr __classcell__rr)rrrOsrc@seZdZdZdS)ConnectionErrorz8An HTTP Client failed to establish a connection: {error}N)rrrr rrrrr[src@seZdZdZdS)EndpointConnectionErrorz7Could not connect to the endpoint URL: "{endpoint_url}"N)rrrr rrrrr _sr c@seZdZdZdS)SSLErrorz0SSL validation failed for {endpoint_url} {error}N)rrrr rrrrr!csr!c@seZdZdZdS)ConnectionClosedErrorz^Connection was closed before we received a valid response from endpoint URL: "{endpoint_url}".N)rrrr rrrrr"gsr"c@seZdZdZdS)ReadTimeoutErrorz.Read timeout on endpoint URL: "{endpoint_url}"N)rrrr rrrrr#msr#c@seZdZdZdS)ConnectTimeoutErrorz1Connect timeout on endpoint URL: "{endpoint_url}"N)rrrr rrrrr$rsr$c@seZdZdZdS)ProxyConnectionErrorz-Failed to connect to proxy URL: "{proxy_url}"N)rrrr rrrrr%vsr%c@seZdZdZdZdS)NoCredentialsErrorz' No credentials could be found zUnable to locate credentialsN)rrrrr rrrrr&zsr&c@seZdZdZdZdS)PartialCredentialsErrorzj Only partial credentials were found. :ivar cred_var: The missing credential variable name. zError when retrieving credentials from {provider}: {error_msg}N)rrrrr rrrrr(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)rrrrr rrrrr)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. zr?r@)rrrraszWaiterError.__init__)rrrrr rrrr)rrr=]sr=c@seZdZdZdZdS)IncompleteReadErrorz6HTTP response did not return expected number of bytes.zB{actual_bytes} read, but total bytes expected is {expected_bytes}.N)rrrrr rrrrrAfsrAc@seZdZdZdZdS)InvalidExpressionErrorz,Expression is either invalid or too complex.zCInvalid expression {expression}: Only dotted lookups are supported.N)rrrrr rrrrrBlsrBc@seZdZdZdZdS)UnknownCredentialErrorz=Tried to insert before/after an unregistered credential type.z"Credential named {name} not found.N)rrrrr rrrrrCqsrCc@seZdZdZdZdS)WaiterConfigErrorz+Error when processing waiter configuration.z+Error processing waiter config: {error_msg}N)rrrrr rrrrrDvsrDc@seZdZdZdZdS)UnknownClientMethodErrorzEError when trying to access a method on a client that does not exist.z*Client does not have method: {method_name}N)rrrrr rrrrrE{srEc@seZdZdZdZdS) UnsupportedSignatureVersionErrorzEError when trying to access a method on a client that does not exist.z7Signature version is not supported: {signature_version}N)rrrrr rrrrrFsrFcs0eZdZdZfddZddZddZZS) ClientErrorziAn error occurred ({error_code}) when calling the {operation_name} operation{retry_info}: {error_message}csZ||}|di}|jj|dd|dd||d}tt||||_||_dS)NErrorZCodeUnknownMessage)Z error_code error_messageoperation_name retry_info) _get_retry_infoget MSG_TEMPLATEr rrGrrrL)rZerror_responserLrMerrorr)rrrrs    zClientError.__init__cCs8d}d|kr4|d}|ddr4d|kr4d|d}|S)NZResponseMetadataZMaxAttemptsReachedFZ RetryAttemptsz (reached max retries: %s))rO)rrrMmetadatarrrrNs  zClientError._get_retry_infocCst|j|jffS)N)rGrrL)rrrrrszClientError.__reduce__)rrrrPrrNrrrr)rrrGs  rGc@s eZdZdS)EventStreamErrorN)rrrrrrrrTsrTc@seZdZdZdS)UnsupportedTLSVersionWarningz:Warn when an openssl version that uses TLS 1.2 is requiredN)rrrrrrrrrUsrUc@s eZdZdS)ImminentRemovalWarningN)rrrrrrrrVsrVc@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)rrrrr rrrrrWsrWc@seZdZdZdZdS)InvalidS3AddressingStyleErrorz-Error when an invalid path style is specifiedzfS3 addressing style {s3_addressing_style} is invaild. Valid options are: 'auto', 'virtual', and 'path'N)rrrrr rrrrrXsrXc@seZdZdZdZdS)InvalidRetryConfigurationErrorz3Error when invalid retry configuration is specifiedzuCannot provide retry configuration for "{retry_config_option}". Valid retry configuration options are: 'max_attempts'N)rrrrr rrrrrYsrYc@seZdZdZdZdS)InvalidMaxRetryAttemptsErrorz3Error when invalid retry configuration is specifiedzkValue provided to "max_attempts": {provided_max_attempts} must be an integer greater than or equal to zero.N)rrrrr rrrrrZsrZc@seZdZdZdS)StubResponseErrorzDError getting response stub for operation {operation_name}: {reason}N)rrrr rrrrr[sr[c@s eZdZdS)StubAssertionErrorN)rrrrrrrr\sr\c@s eZdZdS)UnStubbedResponseErrorN)rrrrrrrr]sr]c@seZdZdZdS)InvalidConfigErrorz {error_msg}N)rrrr rrrrr^sr^c@seZdZdZdS)InfiniteLoopConfigErrorzInfinite loop in credential configuration detected. Attempting to load from profile {source_profile} which has already been visited. Visited profiles: {visited_profiles}N)rrrr rrrrr_sr_c@seZdZdZdS)RefreshWithMFAUnsupportedErrorz/Cannot refresh credentials: MFA token required.N)rrrr rrrrr`sr`c@seZdZdZdS)MD5UnavailableErrorz,This system does not support MD5 generation.N)rrrr rrrrrasrac@seZdZdZdS)MetadataRetrievalErrorz&Error retrieving metadata: {error_msg}N)rrrr rrrrrbsrbc@s eZdZdS)UndefinedModelAttributeErrorN)rrrrrrrrcsrcc@seZdZdZddZdS)MissingServiceIdErrorzrThe model being used for the service {service_name} is missing the serviceId metadata property, which is required.cKs$|jjf|}t||||_dS)N)r r r rr)rrrrrrrs zMissingServiceIdError.__init__N)rrrr rrrrrrdsrd)NN)K __future__rZbotocore.vendoredrZ#botocore.vendored.requests.packagesrr r r rrrrrr exceptionsr!r" ReadTimeoutr#ConnectTimeoutr$ ProxyErrorr%r&r'r(r)r*r+r, ValueErrorr-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<r=rArBrCrDrErFrGrTWarningrUrVrWrXrYrZr[AssertionErrorr\r]r^r_r`rarbrcrdrrrrs                       #