HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberCP/lib/python3.10/site-packages/docker/__pycache__/errors.cpython-310.pyc
o

�h��@sfddlZedd�dD��ZGdd�de�Zdd�ZGd	d
�d
ejje�ZGdd�de�Z	Gd
d�de	�Z
Gdd�de�ZGdd�de�ZGdd�de�Z
Gdd�de�ZGdd�de�ZGdd�de�ZGdd�dee�ZGdd�de�ZGdd �d e�ZGd!d"�d"e�ZGd#d$�d$e�Zd%d&�ZGd'd(�d(e�ZGd)d*�d*e�ZGd+d,�d,e�ZGd-d.�d.e�ZdS)/�Nccs�|]}|��VqdS�N)�lower��.0�fragment�r�@/usr/local/CyberCP/lib/python3.10/site-packages/docker/errors.py�	<genexpr>s�
�r	)z
no such imagez+not found: does not exist or no pull accesszrepository does not existz3was found but does not match the specified platformc@seZdZdZdS)�DockerExceptionz�
    A base class from which all other exceptions inherit.

    If you want to catch all errors that the Docker SDK might raise,
    catch this base exception.
    N)�__name__�
__module__�__qualname__�__doc__rrrrr

sr
cs�|j}z|��d}Wnty|jpd��}Ynwt}|jdkr9|p&d���t�fdd�t	D��r7t
}nt}||||d�|�)zH
    Create a suitable APIError from requests.exceptions.HTTPError.
    �message�i�c3s�|]}|�vVqdSrrr��explanation_msgrrr	"s��z7create_api_error_from_http_exception.<locals>.<genexpr>)�response�explanation)r�json�
ValueError�text�strip�APIError�status_coder�any�&_image_not_found_explanation_fragments�
ImageNotFound�NotFound)�err�clsrrr�$create_api_error_from_http_exceptions�
�r!csReZdZdZd�fdd�	Z�fdd�Zedd��Zd	d
�Zdd�Z	d
d�Z
�ZS)rz%
    An HTTP error from the API.
    Ncst��|�||_||_dSr)�super�__init__rr)�selfrrr��	__class__rrr#.s
zAPIError.__init__csxt���}|��r|jj�d|jj�d|jj��}n|��r.|jj�d|jj�d|jj��}|jr:|�d|j�d�}|S)Nz Client Error for �: z Server Error for z ("z"))	r"�__str__�is_client_errorrr�url�reason�is_server_errorr)r$rr%rrr(5s$

���
���zAPIError.__str__cCs|jdur	|jjSdSr)rr�r$rrrrIs
�zAPIError.status_codecCs|��p|��Sr)r)r,r-rrr�is_errorNszAPIError.is_errorcC�(|jdurdSd|jkodkSS)NFi����rr-rrrr)Q�
zAPIError.is_client_errorcCr/)NFr0iXr1r-rrrr,Vr2zAPIError.is_server_error)NN)rrr
rr#r(�propertyrr.r)r,�
__classcell__rrr%rr*s
rc@�eZdZdS)rN�rrr
rrrrr\�rc@r5)rNr6rrrrr`r7rc@r5)�InvalidVersionNr6rrrrr8dr7r8c@r5)�InvalidRepositoryNr6rrrrr9hr7r9c@r5)�InvalidConfigFileNr6rrrrr:lr7r:c@r5)�InvalidArgumentNr6rrrrr;pr7r;c@r5)�DeprecatedMethodNr6rrrrr<tr7r<c@�eZdZdd�Zdd�ZdS)�TLSParameterErrorcC�
||_dSr��msg�r$rArrrr#y�
zTLSParameterError.__init__cCs
|jdS)Nz�. TLS configurations should map the Docker CLI client configurations. See https://docs.docker.com/engine/articles/https/ for API details.r@r-rrrr(|rCzTLSParameterError.__str__N�rrr
r#r(rrrrr>x�r>c@r5)�NullResourceNr6rrrrrF�r7rFcs eZdZdZ�fdd�Z�ZS)�ContainerErrorzK
    Represents a container that has exited with a non-zero exit code.
    c	sZ||_||_||_||_||_|durd|��nd}t��d|�d|�d|�|���dS)Nr'rz	Command 'z' in image 'z ' returned non-zero exit status )�	container�exit_status�command�image�stderrr"r#)r$rHrIrJrKrL�errr%rrr#�s���zContainerError.__init__)rrr
rr#r4rrr%rrG�srGc@seZdZdd�ZdS)�StreamParseErrorcCr?rr@)r$r+rrrr#�rCzStreamParseError.__init__N)rrr
r#rrrrrN�srNcseZdZ�fdd�Z�ZS)�
BuildErrorcst��|�||_||_dSr)r"r#rA�	build_log)r$r+rPr%rrr#�s
zBuildError.__init__)rrr
r#r4rrr%rrO�srOc@r5)�ImageLoadErrorNr6rrrrrQ�r7rQcCs^dd�t|�D�}|�d�g}t|�dkr|�d�n|�d�|�d�|��td�|��S)	NcSsg|]}d|�d��qS)�'r)r�krrr�
<listcomp>�sz2create_unexpected_kwargs_error.<locals>.<listcomp>z() �z#got an unexpected keyword argument z!got unexpected keyword arguments z, r)�sorted�len�append�join�	TypeError)�name�kwargs�
quoted_kwargsrrrr�create_unexpected_kwargs_error�s
r^c@r=)�MissingContextParametercCr?r��param)r$rarrrr#�rCz MissingContextParameter.__init__cCsd|j��S)Nzmissing parameter: r`r-rrrr(�szMissingContextParameter.__str__NrDrrrrr_�rEr_c@r=)�ContextAlreadyExistscCr?r�r[�r$r[rrrr#�rCzContextAlreadyExists.__init__cC�d|j�d�S)Nzcontext z already existsrcr-rrrr(��zContextAlreadyExists.__str__NrDrrrrrb�rErbc@r=)�ContextExceptioncCr?rr@rBrrrr#�rCzContextException.__init__cCs|jSrr@r-rrrr(�szContextException.__str__NrDrrrrrg�rErgc@r=)�ContextNotFoundcCr?rrcrdrrrr#�rCzContextNotFound.__init__cCre)Nz	context 'z' not foundrcr-rrrr(�rfzContextNotFound.__str__NrDrrrrrh�rErh)�requests�	frozensetr�	Exceptionr
r!�
exceptions�	HTTPErrorrrrr8r9r:r;r<r>rrFrG�RuntimeErrorrNrOrQr^r_rbrgrhrrrr�<module>s2�
	2