
    i	                        S r SSKJr   " S S\R                  5      r " S S\R                  5      r " S S\R                  5      r " S	 S
\R                  5      r " S S\R                  5      r " S S\R                  5      r	g)z"Exceptions for the cloudbuild API.    )
exceptionsc                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )ParserError   z%Error parsing YAML into a dictionary.c                 L   > SR                  UUS9n[        [        U ]  U5        g )Nzparsing {path}: {msg})pathmsg)formatsuperr   __init__)selfr   r	   	__class__s      >lib/googlecloudsdk/api_lib/cloudbuild/cloudbuild_exceptions.pyr   ParserError.__init__   s/    
!
(
( ) C 
+t%c*     __name__
__module____qualname____firstlineno____doc__r   __static_attributes____classcell__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$ )ParseProtoException    z<Error interpreting a dictionary as a specific proto message.c                 N   > SR                  UUUS9n[        [        U ]  U5        g )Nz*interpreting {path} as {proto_name}: {msg})r   
proto_namer	   )r
   r   r   r   )r   r   r    r	   r   s       r   r   ParseProtoException.__init__#   s3    
6
=
= > C
 

t-c2r   r   r   r   s   @r   r   r       s    D3 3r   r   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )HybridNonAlphaConfigError,   zGHybrid Configs are currently only supported in the alpha release track.c                 0   > Sn[         [        U ]  U5        g )Nzinvalid config file.)r   r#   r   r   r	   r   s     r   r   "HybridNonAlphaConfigError.__init__/   s    
 C	
#T3C8r   r   r   r   s   @r   r#   r#   ,   s    O9 9r   r#   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ ) WorkerConfigButNoWorkerpoolError4   zVThe user has not supplied a worker pool even though a workerconfig has been specified.c                 0   > Sn[         [        U ]  U5        g )NzODetected a worker pool config but no worker pool. Please specify a worker pool.)r   r)   r   r&   s     r   r   )WorkerConfigButNoWorkerpoolError.__init__7   s    C	
*D:3?r   r   r   r   s   @r   r)   r)   4   s    ^@ @r   r)   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )TektonVersionError=   z2The Tekton version user supplied is not supported.c                 0   > Sn[         [        U ]  U5        g )NzTTekton version is not supported. Only tekton.dev/v1beta1 is supported at the moment.)r   r.   r   r&   s     r   r   TektonVersionError.__init__@   s    &C	
d,S1r   r   r   r   s   @r   r.   r.   =   s    :2 2r   r.   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )InvalidYamlErrorF   z)The Tekton Yaml user supplied is invalid.c                 J   > SR                  US9n[        [        U ]  U5        g )NzInvalid yaml: {msg})r	   )r
   r   r3   r   r&   s     r   r   InvalidYamlError.__init__I   s&     
(
(S
(
1C	
D*3/r   r   r   r   s   @r   r3   r3   F   s    10 0r   r3   N)
r   googlecloudsdk.corer   Errorr   r   r#   r)   r.   r3   r   r   r   <module>r9      s}    ) ++*"" +	3*** 	39
 0 0 9@z'7'7 @2)) 20z'' 0r   