
                         4   S r SSKJr  SSKJr  SSKJr  SSKJ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\R                  \
5      r " S S\
5      r " S S\
5      r " S S\
5      rg)z+Error support for Cloud Debugger libraries.    )absolute_import)division)unicode_literals)
exceptionsc                       \ rS rSrSrg)
DebugError    N)__name__
__module____qualname____firstlineno____static_attributes__r
       *lib/googlecloudsdk/api_lib/debug/errors.pyr   r      s    r   r   c                   (   ^  \ rS rSrU 4S jrSrU =r$ )InvalidBreakpointTypeError   c                 f   > [         [        U ]  SR                  UR	                  5       5      5        g )Nz"{0} is not a valid breakpoint type)superr   __init__format
capitalize)self	type_name	__class__s     r   r   #InvalidBreakpointTypeError.__init__    s+    	
$d4,33I4H4H4JKMr   r
   r   r   r   r   r   r   __classcell__r   s   @r   r   r      s    M Mr   r   c                   (   ^  \ rS rSrU 4S jrSrU =r$ )BreakpointNotFoundError%   c                    > [         [        U ]  SR                  UR	                  5       SR                  U5      5      5        g )Nz{0} ID not found: {1}z, )r   r"   r   r   r   join)r   breakpoint_idsr   r   s      r   r    BreakpointNotFoundError.__init__'   s:    	
!41&&y';';'='+yy'@	BCr   r
   r   r    s   @r   r"   r"   %   s    C Cr   r"   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )InvalidLogFormatException-   z$A log format expression was invalid.c                 ,   > [         [        U ]  U5        g N)r   r)   r   r   messager   s     r   r   "InvalidLogFormatException.__init__0   s    	
#T3G<r   r
   r   r   r   r   __doc__r   r   r   r    s   @r   r)   r)   -   s    ,= =r   r)   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )InvalidLocationException4   z A location argument was invalid.c                 ,   > [         [        U ]  U5        g r,   )r   r3   r   r-   s     r   r   !InvalidLocationException.__init__7   s    	
"D27;r   r
   r0   r    s   @r   r3   r3   4   s    (< <r   r3   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )UnknownHttpError;   z3An unknown error occurred during a remote API call.c                 ,   > [         [        U ]  U5        g r,   )r   r8   r   )r   errorr   s     r   r   UnknownHttpError.__init__>   s    	
D*51r   r
   r0   r    s   @r   r8   r8   ;   s    ;2 2r   r8   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )MultipleDebuggeesErrorB   z-Multiple targets matched the search criteria.c                    > U(       a  SR                  U5      nOSn[        [        U ]  SR                  USR	                  U Vs/ s H  oDR
                  PM     sn5      5      5        g s  snf )Nz matching "{0}" zlMultiple possible targets found{0}.
Use the --target option to select one of the following targets:
    {1}

    )r   r   r>   r   r%   name)r   pattern	debuggeespattern_msgdr   s        r   r   MultipleDebuggeesError.__init__E   sa    %,,W5kk	
 $0	$f	'B	1	'BCEF (Cs   A*r
   r0   r    s   @r   r>   r>   B   s    5	F 	Fr   r>   c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )NoMatchErrorQ   z&No object matched the search criteria.c                    > U(       a#  [         [        U ]  SR                  X5      5        g [         [        U ]  SR                  U5      5        g )Nz No {0} matched the pattern "{1}"z"No {0} was found for this project.)r   rJ   r   r   )r   object_typerD   r   s      r   r   NoMatchError.__init__T   sD    L$(
,
3
3K
IK L$(
.
5
5k
BDr   r
   r,   r0   r    s   @r   rJ   rJ   Q   s    .D Dr   rJ   c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )NoDebuggeeError]   z,No debug target matched the search criteria.c           	         > U(       a  SR                  U5      nOSnU(       a=  USR                  SR                  U Vs/ s H  oDR                  PM     sn5      5      -  n[        [        U ]  U5        g s  snf )Nz1No active debug target matched the pattern "{0}"
z5No active debug targets were found for this project.
zHUse the --target option to select one of the following targets:
    {0}
rB   )r   r%   rC   r   rP   r   )r   rD   rE   msgrG   r   s        r   r   NoDebuggeeError.__init__`   sj    @GGPcDc	  &mmY7YVVY78!:;c 
/4)#. 8s   A5r
   )NNr0   r    s   @r   rP   rP   ]   s    4
/ 
/r   rP   N)r1   
__future__r   r   r   googlecloudsdk.api_lib.utilr   api_exceptionsgooglecloudsdk.coreErrorr   r   r"   r)   r3   HttpExceptionr8   r>   rJ   rP   r
   r   r   <module>r[      s     2 &  ' D *!! M MCj C=
 =<z <2~33Z 2FZ F	D: 	D/j /r   