ok
Direktori : /lib/python3.6/site-packages/acme/__pycache__/ |
Current File : //lib/python3.6/site-packages/acme/__pycache__/errors.cpython-36.pyc |
3 گa� � @ 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.6/errors.pyr s r c @ s e Zd ZdZdS )�DependencyErrorzDependency errorN)r r r r r r r r r s r c @ s e Zd ZdZdS )�SchemaValidationErrorz)JSON schema ACME object validation error.N)r r r r r r r r r s r c @ s e Zd ZdZdS )�ClientErrorzNetwork error.N)r r r r r r r r r s r c @ s e Zd ZdZdS )�UnexpectedUpdatezUnexpected update error.N)r r r r r r r r r ! s r c @ s e Zd ZdZdS )� NonceErrorzServer response nonce error.N)r r r r 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 dj | 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 )N)r r r# )r r# r )r r r r >