o
    D³ãf  ã                   @   sP   d dl m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 )é    )ÚOptionalc                       s:   e Zd ZdZdZdedee f‡ fdd„Zdd„ Z	‡  Z
S )	ÚFileFormatErrorz-
    The file is not formatted correctly
    ÚsequenceÚmsgÚlinec                    s   t ƒ  ||¡ || _|| _d S )N)ÚsuperÚ__init__Úmessager   )Úselfr   r   ©Ú	__class__© úY/var/www/html/software/conda/envs/catlas/lib/python3.10/site-packages/dnaio/exceptions.pyr   
   s   
zFileFormatError.__init__c                 C   s0   | j d u rdnd | j d ¡}d | j|| j¡S )Nzunknown linezline {}é   zError in {} file at {}: {})r   Úformatr	   )r
   r   r   r   r   Ú__str__   s   zFileFormatError.__str__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ústrr   Úintr   r   Ú__classcell__r   r   r   r   r      s
    r   c                   @   ó   e Zd ZdZdS )ÚFastqFormatErrorZFASTQN©r   r   r   r   r   r   r   r   r      ó    r   c                   @   r   )ÚFastaFormatErrorZFASTANr   r   r   r   r   r      r   r   c                   @   r   )ÚUnknownFileFormatz=
    The file format could not be automatically detected
    N)r   r   r   r   r   r   r   r   r      r   r   N)Útypingr   Ú	Exceptionr   r   r   r   r   r   r   r   Ú<module>   s
    