
    	                         S r SSKJr   " S S\R                  5      r " S S\5      r " S S\5      r " S	 S
\5      r " S S\5      r " S S\5      r	g)z*Exceptions for Cloud Run compose commands.    )
exceptionsc                       \ rS rSrSrSrg)ComposeError   z&Base class for run compose exceptions. N)__name__
__module____qualname____firstlineno____doc____static_attributes__r       8lib/googlecloudsdk/command_lib/run/compose/exceptions.pyr   r      s    .r   r   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )GoBinaryError   aH  Error from run-compose Go binary.

This exception represents all errors originating from the Go binary.
The exit code and error message are preserved from Go binary's exit code
and error message.
Exit codes 0-99 are reserved for errors from the Go binary.
To find the mapping of exit code to error type, refer to golang binary.
c                 8   > [         [        U ]  U5        X l        g )N)superr   __init__	exit_codeselfmessager   	__class__s      r   r   GoBinaryError.__init__#   s    	-'0Nr   r   r   r	   r
   r   r   r   r   __classcell__r   s   @r   r   r      s     r   r   c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )GcloudError(   zrReserved for exceptions in run-compose caused by gcloud.

Exit codes 100-200 are reserved for this type of error.
c                 (   > [         [        U ]  XS9  g Nr   )r   r!   r   r   s      r   r   GcloudError.__init__.       	+t%g%Cr   r   d   r   r   s   @r   r!   r!   (       
D Dr   r!   c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )GcloudResourcesError2   z|Reserved for exceptions in run-compose caused by gcloud resources.

Exit codes 111-125 are reserved for this type of error.
c                 (   > [         [        U ]  XS9  g r$   )r   r+   r   r   s      r   r   GcloudResourcesError.__init__8   s    	
.w.Lr   r   r'   r   r   s   @r   r+   r+   2   s    
M Mr   r+   c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )
BuildError<   zzReserved for exceptions in run-compose caused by build failures.

Exit codes 126-135 are reserved for this type of error.
c                 (   > [         [        U ]  XS9  g r$   )r   r0   r   r   s      r   r   BuildError.__init__B   s    	*d$W$Br   r   r'   r   r   s   @r   r0   r0   <   s    
C Cr   r0   c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )DeployErrorF   zReserved for exceptions in run-compose caused by deployment failures.

Exit codes 136-145 are reserved for this type of error.
c                 (   > [         [        U ]  XS9  g r$   )r   r5   r   r   s      r   r   DeployError.__init__L   r&   r   r   r'   r   r   s   @r   r5   r5   F   r)   r   r5   N)
r   googlecloudsdk.corer   Errorr   r   r!   r+   r0   r5   r   r   r   <module>r;      se    1 +/:## /L D, DM< MC CD, Dr   