
    	                     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\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.    )absolute_import)division)unicode_literals)
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__2   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$ ) WorkerConfigButNoWorkerpoolError7   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__:   s    C	
*D:3?r   r   r   r   s   @r   r,   r,   7   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   r1   r   r)   s     r   r   TektonVersionError.__init__C   s    &C	
d,S1r   r   r   r   s   @r   r1   r1   @   s    :2 2r   r1   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )InvalidYamlErrorI   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   r6   r   r)   s     r   r   InvalidYamlError.__init__L   s&     
(
(S
(
1C	
D*3/r   r   r   r   s   @r   r6   r6   I   s    10 0r   r6   N)r   
__future__r   r   r   googlecloudsdk.corer   Errorr   r    r&   r,   r1   r6   r   r   r   <module>r=      s    ) &  ' *+*"" +	3*** 	39
 0 0 9@z'7'7 @2)) 20z'' 0r   