a
    §ˆc/  ã                   @   sH   d Z G dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZd	S )
z/ Custom exceptions for UITester and UIWrapper.
c                   @   s   e Zd ZdZdS )ÚTesterErrorz(Custom exception for UITester/UIWrapper.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   úe/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/traitsui/testing/tester/exceptions.pyr      s   r   c                   @   s   e Zd ZdZdS )ÚDisabledz>Raised when a simulation fails because the widget is disabled.Nr   r   r   r   r   r	      s   r	   c                   @   s    e Zd ZdZdd„ Zdd„ ZdS )ÚInteractionNotSupportedaO  Raised when an interaction is not supported by a wrapper.

    Parameters
    ----------
    target_class : subclass of type
        The type of a UI target being operated on.
    interaction_class : subclass of type
        Any class for the interaction.
    supported : list of types
        List of supported interaction types.
    c                 C   s   || _ || _|| _d S ©N)Útarget_classÚinteraction_classÚ	supported)Úselfr   r   r   r   r   r   Ú__init__(   s    z InteractionNotSupported.__init__c                 C   s   d  | j| j| j¡S )NzPNo handler is found for target {!r} with interaction {!r}. Supported these: {!r})Úformatr   r   r   ©r   r   r   r   Ú__str__-   s    þÿzInteractionNotSupported.__str__N©r   r   r   r   r   r   r   r   r   r   r
      s   r
   c                   @   s    e Zd ZdZdd„ Zdd„ ZdS )ÚLocationNotSupportedzlRaised when attempt to resolve a location on a UI fails
    because the location type is not supported.
    c                 C   s   || _ || _|| _d S r   )r   Úlocator_classr   )r   r   r   r   r   r   r   r   ;   s    zLocationNotSupported.__init__c                 C   s   d  | j| j| j¡S )Nz>Location {!r} is not supported for {!r}. Supported these: {!r})r   r   r   r   r   r   r   r   r   @   s    þÿzLocationNotSupported.__str__Nr   r   r   r   r   r   6   s   r   N)r   Ú	Exceptionr   r	   r
   r   r   r   r   r   Ú<module>   s   