Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/bakauth/__pycache__/exc.cpython-39.pyc
Ðазад
a � h@ � @ s� d Z ddlmZ G dd� de�ZG dd� de�ZG dd� de�ZG d d � d e�ZG dd� de�ZG d d� de�Z G dd� de �Z G dd� de�ZG dd� de�ZG dd� de�Z G dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZdS ) z"Backup Authority API error classes� )�Statusc sP e Zd ZdZdZeed�dd�Zejd�eed�� fdd�Z� fd d �Z � Z S )�BakAuthErrorz�Base class raised for errors with the Backup Authority API. All other exceptions subclass this, so catching this catches them all Args: status (Status): error code data (str): error message �bakauth)�status�datac C s� | t urt�| �S |tju r&t�t�S |tju r8td��|tju rLt�t �S |tj u r`t�t�S |tju rtt�t �S |tju r�t�t�S |tju r�t�t�S |tju r�t�t�S |tju r�t�t�S |tju r�t�t�S t�| �S )Nz0 is not an error code)r � Exception�__new__r �REQUEST_EXCEPTION�BakAuthDown�OKAY� ValueError�AMP_DOWN�AMPDownError�WRONG_SERVER_CLASS�WrongServerClass�AUTH_FAILED�BakAuthLoginFailed�INTERNAL_NO_QUOTA� InternalQuota�VDED_AMP_MISSING�NoAmpAccount�LOOKUP_MISSING� LookupMissing� AUTH_MIGRATED�DedicatedMoved�INTERNAL_VPS� VpsRestricted)�clsr r � r �:/opt/imh-python/lib/python3.9/site-packages/bakauth/exc.pyr s. zBakAuthError.__new__)r c s t � �|� || _d S )N)�super�__init__r )�selfr r �� __class__r r r! + s zBakAuthError.__init__c s | j j� dt� �� � �S )Nz: )r �namer �__str__)r"