JFIF$        dd7 

Viewing File: /usr/lib/python3.9/site-packages/acme/__pycache__/errors.cpython-39.opt-1.pyc

a

}|�g��@sHdZddlZddlmZddlmZddlmZddlmZddlmZddl	Z	ej
rbddlmZGd	d
�d
e
�ZGdd�de�ZGd
d�dej�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd �d e�ZGd!d"�d"e�ZGd#d$�d$e�ZdS)%zACME errors.�N)�Any)�List)�Mapping)�Set)�errors)�messagesc@seZdZdZdS)�ErrorzGeneric ACME error.N��__name__�
__module__�__qualname__�__doc__�rr�//usr/lib/python3.9/site-packages/acme/errors.pyrsrc@seZdZdZdS)�DependencyErrorzDependency errorNr	rrrrrsrc@seZdZdZdS)�SchemaValidationErrorz)JSON schema ACME object validation error.Nr	rrrrrsrc@seZdZdZdS)�ClientErrorzNetwork error.Nr	rrrrrsrc@seZdZdZdS)�UnexpectedUpdatezUnexpected update error.Nr	rrrrr!src@seZdZdZdS)�
NonceErrorzServer response nonce error.Nr	rrrrr%srcs:eZdZdZeeedd��fdd�Zed�dd�Z�Z	S)	�BadNoncezBad nonce error.N)�nonce�error�args�returncst�j|�||_||_dS�N)�super�__init__rr)�selfrrr��	__class__rrr+szBadNonce.__init__�rcCsd�|j|j�S)NzInvalid nonce ({0!r}): {1})�formatrr�rrrr�__str__0szBadNonce.__str__)
r
rrr
�str�	Exceptionrrr#�
__classcell__rrrrr)srcs:eZdZdZejedd��fdd�Zed�dd�Z	�Z
S)	�MissingNoncez�Missing nonce error.

    According to the specification an "ACME server MUST include an
    Replay-Nonce header field in each successful response to a POST it
    provides to a client (...)".

    :ivar requests.Response ~.response: HTTP Response

    N)�responserrcst�j|�||_dSr)rrr()rr(rrrrr>szMissingNonce.__init__r cCsd�|jjj|jj�S)Nz_Server {0} response did not include a replay nonce, headers: {1} (This may be a service outage))r!r(Zrequest�methodZheadersr"rrrr#Bs�zMissingNonce.__str__)r
rrr
�requestsZResponserrr$r#r&rrrrr'4s	r'csReZdZdZededdd��fdd�Zeed�d	d
��Z	e
d�dd�Z�ZS)
�	PollErrora�Generic error when polling for authorization fails.

    This might be caused by either timeout (`exhausted` will be non-empty)
    or by some authorization being invalid.

    :ivar exhausted: Set of `.AuthorizationResource` that didn't finish
        within max allowed attempts.
    :ivar updated: Mapping from original `.AuthorizationResource`
        to the most recently updated one

    �messages.AuthorizationResource)r,r,N)�	exhausted�updatedrcs||_||_t���dSr)r-r.rr)rr-r.rrrrTszPollError.__init__r cCs
t|j�S)z Was the error caused by timeout?)�boolr-r"rrr�timeout\szPollError.timeoutcCsd�|jj|j|j�S)Nz#{0}(exhausted={1!r}, updated={2!r}))r!rr
r-r.r"rrr�__repr__as�zPollError.__repr__)
r
rrr
rrr�propertyr/r0r$r1r&rrrrr+Hs�r+cs,eZdZdZeddd��fdd�Z�ZS)�ValidationErrorz�Error for authorization failures. Contains a list of authorization
    resources, each of which is invalid and should have an error field.
    r,N)�failed_authzrsrcs||_t���dSr)r4rr)rr4rrrrjszValidationError.__init__)r
rrr
rrr&rrrrr3fsr3c@seZdZdZdS)�TimeoutErrorz>Error for when polling an authorization or an order times out.Nr	rrrrr5osr5cs(eZdZdZddd��fdd�Z�ZS)�
IssuanceErrorzDError sent by the server after requesting issuance of a certificate.zmessages.ErrorN)rrcs||_t���dS)z\Initialize.

        :param messages.Error error: The error provided by the server.
        N)rrr)rrrrrrvszIssuanceError.__init__)r
rrr
rr&rrrrr6ssr6cs(eZdZdZedd��fdd�Z�ZS)�
ConflictErroraError for when the server returns a 409 (Conflict) HTTP status.

    In the version of ACME implemented by Boulder, this is used to find an
    account if you only have the private key, but don't know the account URL.

    Also used in V2 of the ACME client for the same purpose.
    N)�locationrcs||_t���dSr)r8rr)rr8rrrr�szConflictError.__init__)r
rrr
r$rr&rrrrr7sr7c@seZdZdZdS)�WildcardUnsupportedErrorzEError for when a wildcard is requested but is unsupported by ACME CA.Nr	rrrrr9�sr9)r
�typingrrr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