File: //lib/python3/dist-packages/compose/__pycache__/errors.cpython-310.pyc
o
    S�`�  �                   @   sd   G d d� de �ZG dd� de�ZG dd� de �ZG dd� de�ZG dd	� d	e�ZG d
d� de �ZdS )
c                   @   �   e Zd Zdd� ZdS )�OperationFailedErrorc                 C   �
   || _ d S �N��msg��self�reason� r
   �0/usr/lib/python3/dist-packages/compose/errors.py�__init__   �   
zOperationFailedError.__init__N��__name__�
__module__�__qualname__r   r
   r
   r
   r   r      �    r   c                   @   r   )�StreamParseErrorc                 C   r   r   r   r   r
   r
   r   r      r
   zStreamParseError.__init__Nr   r
   r
   r
   r   r      r   r   c                   @   r   )�HealthCheckExceptionc                 C   r   r   r   r   r
   r
   r   r      r
   zHealthCheckException.__init__Nr   r
   r
   r
   r   r      r   r   c                       �   e Zd Z� fdd�Z�  ZS )�HealthCheckFailedc                    �   t � �d�|�� d S )NzContainer "{}" is unhealthy.��superr   �format)r   �container_id��	__class__r
   r   r      s   �zHealthCheckFailed.__init__�r   r   r   r   �
__classcell__r
   r
   r   r   r      �    r   c                       r   )�NoHealthCheckConfiguredc                    r   )Nz3Service "{}" is missing a healthcheck configurationr   )r   �service_namer   r
   r   r      s
   ��z NoHealthCheckConfigured.__init__r   r
   r
   r   r   r!      r    r!   c                   @   r   )�CompletedUnsuccessfullyc                 C   s   d� ||�| _d S )Nz#Container "{}" exited with code {}.)r   r   )r   r   �	exit_coder
   r
   r   r   !   s   z CompletedUnsuccessfully.__init__Nr   r
   r
   r
   r   r#       r   r#   N)�	Exceptionr   �RuntimeErrorr   r   r   r!   r#   r
   r
   r
   r   �<module>   s