
    S`                          G d  de       Z G d de      Z G d de       Z G d de      Z G d d	e      Z G d
 de       Zy)c                       e Zd Zd Zy)OperationFailedErrorc                     || _         y Nmsgselfreasons     0/usr/lib/python3/dist-packages/compose/errors.py__init__zOperationFailedError.__init__   	        N__name__
__module____qualname__r    r   r   r   r          r   r   c                       e Zd Zd Zy)StreamParseErrorc                     || _         y r   r   r   s     r   r   zStreamParseError.__init__   r   r   Nr   r   r   r   r   r      r   r   r   c                       e Zd Zd Zy)HealthCheckExceptionc                     || _         y r   r   r   s     r   r   zHealthCheckException.__init__   r   r   Nr   r   r   r   r   r      r   r   r   c                        e Zd Z fdZ xZS )HealthCheckFailedc                 B    t         |   dj                  |             y )NzContainer "{}" is unhealthy.superr   format)r	   container_id	__class__s     r   r   zHealthCheckFailed.__init__   s    *11,?	
r   r   r   r   r   __classcell__r"   s   @r   r   r      s    
 
r   r   c                        e Zd Z fdZ xZS )NoHealthCheckConfiguredc                 B    t         |   dj                  |             y )Nz3Service "{}" is missing a healthcheck configurationr   )r	   service_namer"   s     r   r   z NoHealthCheckConfigured.__init__   s!    AHH	
r   r#   r%   s   @r   r'   r'      s    
 
r   r'   c                       e Zd Zd Zy)CompletedUnsuccessfullyc                 2    dj                  ||      | _        y )Nz#Container "{}" exited with code {}.)r    r   )r	   r!   	exit_codes      r   r   z CompletedUnsuccessfully.__init__!   s    8??iXr   Nr   r   r   r   r+   r+       s    Yr   r+   N)	Exceptionr   RuntimeErrorr   r   r   r'   r+   r   r   r   <module>r0      sQ   9 
| 
9 

, 

2 
Yi Yr   