U
    ü‚ºe>  ã                   @   s(   d Z G dd„ deƒZG dd„ deƒZdS )zì
This module contains generic exceptions used by template backends. Although,
due to historical reasons, the Django template language also internally uses
these exceptions, other exceptions specific to the DTL should not be added
here.
c                       s"   e Zd ZdZd‡ fdd„	Z‡  ZS )ÚTemplateDoesNotExistav  
    The exception used when a template does not exist. Optional arguments:

    backend
        The template backend class used when raising this exception.

    tried
        A list of sources that were tried when finding the template. This
        is formatted as a list of tuples containing (origin, status), where
        origin is an Origin object or duck type and status is a string with the
        reason the template wasn't found.

    chain
        A list of intermediate TemplateDoesNotExist exceptions. This is used to
        encapsulate multiple exceptions when loading templates from multiple
        engines.
    Nc                    s:   || _ |d krg }|| _|d kr$g }|| _tƒ  |¡ d S )N)ÚbackendÚtriedÚchainÚsuperÚ__init__)ÚselfÚmsgr   r   r   ©Ú	__class__© ú>/tmp/pip-unpacked-wheel-lctamlir/django/template/exceptions.pyr      s    zTemplateDoesNotExist.__init__)NNN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__classcell__r   r   r	   r   r   	   s   r   c                   @   s   e Zd ZdZdS )ÚTemplateSyntaxErrorzK
    The exception used for syntax errors during parsing or rendering.
    N)r   r   r   r   r   r   r   r   r   '   s   r   N)r   Ú	Exceptionr   r   r   r   r   r   Ú<module>   s   