File: //lib/python3.9/site-packages/acme/__pycache__/errors.cpython-39.opt-1.pyc
a
}|�g� � @ sH d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl Z ej
rbddlmZ G d d
� d
e
�ZG dd� de�ZG d
d� dej�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�ZG d!d"� d"e�ZG d#d$� d$e�ZdS )%zACME errors.� N)�Any)�List)�Mapping)�Set)�errors)�messagesc @ s e Zd ZdZdS )�ErrorzGeneric ACME error.N��__name__�
__module__�__qualname__�__doc__� r r �//usr/lib/python3.9/site-packages/acme/errors.pyr s r c @ s e Zd ZdZdS )�DependencyErrorzDependency errorNr r r r r r s r c @ s e Zd ZdZdS )�SchemaValidationErrorz)JSON schema ACME object validation error.Nr r r r r r s r c @ s e Zd ZdZdS )�ClientErrorzNetwork error.Nr r r r r r s r c @ s e Zd ZdZdS )�UnexpectedUpdatezUnexpected update error.Nr r r r r r ! s r c @ s e Zd ZdZdS )�
NonceErrorzServer response nonce error.Nr r r r r r % s r c s: e Zd ZdZeeedd�� fdd�Zed�dd�Z� Z S ) �BadNoncezBad nonce error.N)�nonce�error�args�returnc s t � j|� || _|| _d S �N)�super�__init__r r )�selfr r r �� __class__r r r + s zBadNonce.__init__�r c C s d� | j| j�S )NzInvalid nonce ({0!r}): {1})�formatr r �r r r r �__str__0 s zBadNonce.__str__)
r
r r r
�str� Exceptionr r r# �
__classcell__r r r r r ) s r c s: e Zd ZdZejedd�� 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)�responser r c s t � j|� || _d S r )r r r( )r r( r r r r r >