o
    Æi  ã                   @   s4   d Z ddlmZ G dd„ deƒZG dd„ deƒZdS )z$Module for pydicom exception classesé    )ÚAnyc                   @   s"   e Zd ZdZdeddfdd„ZdS )ÚInvalidDicomErrora!  Exception that is raised when the the file does not appear to be DICOM.

    Usually raised when the "DICM" prefix is not present at position 128 in
    the file.

    To force reading the file (because maybe it is a DICOM file without
    a header), use ``dcmread(..., force=True)``.
    ÚargsÚreturnNc                 G   s   |sd}t j| g|¢R Ž  d S )N)z-The specified file is not a valid DICOM file.)Ú	ExceptionÚ__init__)Úselfr   © r	   úD/mnt/sdb/aimis/docanh/lib/python3.10/site-packages/pydicom/errors.pyr      s   zInvalidDicomError.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r	   r	   r	   r
   r      s    	r   c                   @   s   e Zd ZdZdS )ÚBytesLengthExceptionz;Exception that is raised for an unexpected number of bytes.N)r   r   r   r   r	   r	   r	   r
   r      s    r   N)r   Útypingr   r   r   r   r	   r	   r	   r
   Ú<module>   s   