%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/acme/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/acme/__pycache__/errors.cpython-312.pyc

�

M/�e����dZddlZddlmZddlmZddlmZddlmZddlmZddl	Z	ejrddlmZGd	�d
e
�ZGd�de�ZGd
�dej �ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�d e�ZGd!�d"e�ZGd#�d$e�Zy)%zACME errors.�N)�Any)�List)�Mapping)�Set)�errors)�messagesc��eZdZdZy)�ErrorzGeneric ACME error.N��__name__�
__module__�__qualname__�__doc__���-/usr/lib/python3/dist-packages/acme/errors.pyr
r
s��rr
c��eZdZdZy)�DependencyErrorzDependency errorNrrrrrrs��rrc��eZdZdZy)�SchemaValidationErrorz)JSON schema ACME object validation error.Nrrrrrrs��3rrc��eZdZdZy)�ClientErrorzNetwork error.Nrrrrrrs��rrc��eZdZdZy)�UnexpectedUpdatezUnexpected update error.Nrrrrrr!s��"rrc��eZdZdZy)�
NonceErrorzServer response nonce error.Nrrrrrr%s��&rrc�@��eZdZdZdedededdf�fd�Zdefd�Z�xZ	S)	�BadNoncezBad nonce error.�nonce�error�args�returnNc�:��t�|�|�||_||_y�N)�super�__init__rr )�selfrr r!�	__class__s    �rr&zBadNonce.__init__+s���
���$����
���
rc�N�dj|j|j�S)NzInvalid nonce ({0!r}): {1})�formatrr �r's r�__str__zBadNonce.__str__0s��+�2�2�4�:�:�t�z�z�J�Jr)
rr
rr�str�	Exceptionrr&r,�
__classcell__�r(s@rrr)s5�����c��)��C��D��
K��Krrc�P��eZdZdZdej
deddf�fd�Zdefd�Z	�xZ
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

    �responser!r"Nc�,��t�|�|�||_yr$)r%r&r3)r'r3r!r(s   �rr&zMissingNonce.__init__>s���
���$�� ��
rc��dj|jjj|jj�S)Nz_Server {0} response did not include a replay nonce, headers: {1} (This may be a service outage))r*r3�request�method�headersr+s rr,zMissingNonce.__str__Bs9��E�EK�V��M�M�)�)�0�0�$�-�-�2G�2G�FI�	Jr)rr
rr�requests�Responserr&r-r,r/r0s@rr2r24s6����!��!2�!2�!�3�!�4�!�J��Jrr2c�^��eZdZdZdeddedddf�fd�Zedefd	��Z	de
fd
�Z�xZS)�	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

    �	exhausted�messages.AuthorizationResource�updated)r>r>r"Nc�>��||_||_t�|�
�yr$)r=r?r%r&)r'r=r?r(s   �rr&zPollError.__init__Ts���#������
���rc�,�t|j�S)z Was the error caused by timeout?)�boolr=r+s r�timeoutzPollError.timeout\s���D�N�N�#�#rc�x�dj|jj|j|j�S)Nz#{0}(exhausted={1!r}, updated={2!r}))r*r(rr=r?r+s r�__repr__zPollError.__repr__as0��4�;�;��N�N�#�#�T�^�^�T�\�\�C�	Cr)
rr
rrrrr&�propertyrBrCr-rEr/r0s@rr<r<Hsa���
��#�&F�"G��!�#C�D�����$��$��$�C�#�Crr<c�2��eZdZdZdedddf�fd�Z�xZS)�ValidationErrorz�Error for authorization failures. Contains a list of authorization
    resources, each of which is invalid and should have an error field.
    �failed_authzrsr>r"Nc�0��||_t�|�	�yr$)rIr%r&)r'rIr(s  �rr&zValidationError.__init__js���,���
���r)rr
rrrr&r/r0s@rrHrHfs'�����t�,L�'M��RV��rrHc��eZdZdZy)�TimeoutErrorz>Error for when polling an authorization or an order times out.NrrrrrLrLos��HrrLc�$��eZdZdZd�fd�Z�xZS)�
IssuanceErrorzDError sent by the server after requesting issuance of a certificate.c�0��||_t�|�	�y)z\Initialize.

        :param messages.Error error: The error provided by the server.
        N)r r%r&)r'r r(s  �rr&zIssuanceError.__init__vs���
��
�
���r)r zmessages.Errorr"N)rr
rrr&r/r0s@rrNrNss���N��rrNc�,��eZdZdZdeddf�fd�Z�xZS)�
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.
    �locationr"Nc�0��||_t�|�	�yr$)rRr%r&)r'rRr(s  �rr&zConflictError.__init__�s��� ��
�
���r)rr
rrr-r&r/r0s@rrQrQs ���������rrQc��eZdZdZy)�WildcardUnsupportedErrorzEError for when a wildcard is requested but is unsupported by ACME CA.NrrrrrUrU�s��OrrU)r�typingrrrr�josepyr�jose_errorsr9�
TYPE_CHECKING�acmerr.r
r�DeserializationErrorrrrrrr2r<rHrLrNrQrUrrr�<module>r\s����
�����(��
�����I���e��4�K�<�<�4��%��#�{�#�'��'�K�z�K�J�:�J�(C��C�<�e��I�5�I�	�E�	�
�K�
�P�u�Pr

Zerion Mini Shell 1.0