
                             d Z ddlmZ ddlmZ ddlmZ ddlmZ  G d dej                        Z G d d	ej                        Z	y
)z&Utilities for Anthos on VMware errors.    )absolute_import)division)unicode_literals)
exceptionsc                   $     e Zd ZdZd fd	Z xZS )MissingClusterFieldz+Class for errors by missing cluster fields.c                 d    dj                  ||      }|r|d|z   z  }t        t        |   |       y )NzCluster {} is missing {}. )formatsuperr   __init__)self
cluster_idfieldextra_messagemessage	__class__s        9lib/googlecloudsdk/command_lib/container/vmware/errors.pyr   zMissingClusterField.__init__   s7    )00UCG}$$g	
t-g6    )N)__name__
__module____qualname____doc__r   __classcell__)r   s   @r   r   r      s    37 7r   r   c                       e Zd ZdZy)UnsupportedClusterVersionz1Class for errors by unsupported cluster versions.N)r   r   r   r    r   r   r   r   "   s    9r   r   N)
r   
__future__r   r   r   googlecloudsdk.corer   Errorr   r   r   r   r   <module>r!      s:    - &  ' *7*** 7:
 0 0 :r   