a
    �Ï?e  ã                   @   s`   d Z ddl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G dd„ deƒZdS )zBasic data types for anyconfig.é    Nc                       s>   e Zd ZU dZdZeed< dejej	 dœ‡ fdd„Z
‡  ZS )	Ú	BaseErrorzBase Error exception.zforced_type: {!s}Ú_msg_fmtN)Úargc                    s   t ƒ  | j t|ƒ¡¡ dS )zInitialize the format.N)ÚsuperÚ__init__r   ÚformatÚstr)Úselfr   ©Ú	__class__© úZ/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/anyconfig/common/errors.pyr      s    zBaseError.__init__)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ú__annotations__ÚtypingÚOptionalÚAnyr   Ú__classcell__r   r   r
   r   r   
   s   
r   c                   @   s   e Zd ZU dZdZeed< dS )ÚUnknownParserTypeErrorz.Raise if no parsers were found for given type.zNo parser found for type: {!s}r   N©r   r   r   r   r   r   r   r   r   r   r   r      s   
r   c                   @   s   e Zd ZdZdS )ÚUnknownProcessorTypeErrorz1Raise if no processors were found for given type.N)r   r   r   r   r   r   r   r   r      s   r   c                   @   s   e Zd ZU dZdZeed< dS )ÚUnknownFileTypeErrorz4Raise if not parsers were found for given file path.zNo parser found for file: {!s}r   Nr   r   r   r   r   r      s   
r   c                   @   s   e Zd ZU dZdZeed< dS )ÚValidationErrorzRaise if validation failed.zValidation failed: {!s}r   Nr   r   r   r   r   r   $   s   
r   )r   r   ÚRuntimeErrorr   r   r   r   r   r   r   r   r   Ú<module>   s   
