
    Zi                         d Z ddlZ G d de          Z G d dee          Z G d dee          Z G d	 d
ee          Z	 G d de          Z
d ZdS )z
    Kubernetes

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: release-1.35
    Generated by: https://openapi-generator.tech
    Nc                       e Zd ZdZdS )OpenApiExceptionz2The base exception class for all OpenAPIExceptionsN)__name__
__module____qualname____doc__     W/root/projects/butler/venv/lib/python3.11/site-packages/kubernetes/client/exceptions.pyr   r      s        <<<<r
   r   c                   $     e Zd Z	 	 d fd	Z xZS )ApiTypeErrorNc                     || _         || _        || _        |}|r#d                    |t	          |                    }t          t          |                               |           dS )a   Raises an exception for TypeErrors

        Args:
            msg (str): the exception message

        Keyword Args:
            path_to_item (list): a list of keys an indices to get to the
                                 current_item
                                 None if unset
            valid_classes (tuple): the primitive classes that current item
                                   should be an instance of
                                   None if unset
            key_type (bool): False if our value is a value in a dict
                             True if it is a key in a dict
                             False if our item is an item in a list
                             None if unset
        
{0} at {1}N)path_to_itemvalid_classeskey_typeformatrender_pathsuperr   __init__)selfmsgr   r   r   full_msg	__class__s         r   r   zApiTypeError.__init__   sk    & )*  	K#**3L0I0IJJHlD!!**844444r
   NNNr   r   r   r   __classcell__r   s   @r   r   r      sC        =A5 5 5 5 5 5 5 5 5 5r
   r   c                         e Zd Zd fd	Z xZS )ApiValueErrorNc                     || _         |}|r#d                    |t          |                    }t          t          |                               |           dS )z
        Args:
            msg (str): the exception message

        Keyword Args:
            path_to_item (list) the path to the exception in the
                received_data dict. None if unset
        r   N)r   r   r   r   r    r   r   r   r   r   r   s       r   r   zApiValueError.__init__2   s\     ) 	K#**3L0I0IJJHmT""++H55555r
   Nr   r   s   @r   r    r    1   s=        6 6 6 6 6 6 6 6 6 6r
   r    c                         e Zd Zd fd	Z xZS )ApiKeyErrorNc                     || _         |}|r#d                    |t          |                    }t          t          |                               |           dS )z
        Args:
            msg (str): the exception message

        Keyword Args:
            path_to_item (None/list) the path to the exception in the
                received_data dict
        r   N)r   r   r   r   r%   r   r"   s       r   r   zApiKeyError.__init__D   s\     ) 	K#**3L0I0IJJHk4  ))(33333r
   r#   r   r   s   @r   r%   r%   C   s=        4 4 4 4 4 4 4 4 4 4r
   r%   c                       e Zd ZddZd ZdS )ApiExceptionNc                     |r?|j         | _         |j        | _        |j        | _        |                                | _        d S || _         || _        d | _        d | _        d S r#   )statusreasondatabody
getheadersheaders)r   r*   r+   	http_resps       r   r   zApiException.__init__V   s^     		 #*DK#*DK!DI$//11DLLL DK DKDIDLLLr
   c                     d                     | j        | j                  }| j        r|d                     | j                  z  }| j        r|d                     | j                  z  }|S )z#Custom error messages for exceptionz({0})
Reason: {1}
zHTTP response headers: {0}
zHTTP response body: {0}
)r   r*   r+   r/   r-   )r   error_messages     r   __str__zApiException.__str__b   sy    ((.t{DK(H(H 	< 	;BB  M 9 	K8??	JJJMr
   r   )r   r   r   r   r3   r	   r
   r   r(   r(   T   s7        
  
  
  
     r
   r(   c                     d}| D ]M}t          |t          j                  r|d                    |          z  }5|d                    |          z  }N|S )z)Returns a string representation of a path z[{0}]z['{0}'])
isinstancesixinteger_typesr   )r   resultpths      r   r   r   p   sb    F , ,c3,-- 	,gnnS)))FFi&&s+++FFMr
   )r   r7   	Exceptionr   	TypeErrorr   
ValueErrorr    KeyErrorr%   r(   r   r	   r
   r   <module>r?      s    


= = = = =y = = =5 5 5 5 5#Y 5 5 5:6 6 6 6 6$j 6 6 6$4 4 4 4 4"H 4 4 4"    #   8    r
   