
    -PhU                       d Z ddlmZ  G d de          Z G d de          Z G d de          Z G d	 d
e          Z G d de          Z G d de          Z	 G d de          Z
 G d de          Z G d de          Z G d de          Z G d de          Z G d de          Z G d de          ZdS )z*Contains SphinxError and a few subclasses.    )annotationsc                      e Zd ZdZdZdS )SphinxErrora  Base class for Sphinx errors.

    This is the base class for "nice" exceptions.  When such an exception is
    raised, Sphinx will abort the build and present the exception category and
    message to the user.

    Extensions are encouraged to derive from this exception for their custom
    errors.

    Exceptions *not* derived from :exc:`SphinxError` are treated as unexpected
    and shown to the user with a part of the traceback (and the full traceback
    saved in a temporary file).

    .. attribute:: category

       Description of the exception "category", used in converting the
       exception to a string ("category: message").  Should be set accordingly
       in subclasses.
    zSphinx errorN__name__
__module____qualname____doc__category     M/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/sphinx/errors.pyr   r      s         ( HHHr   r   c                      e Zd ZdZdZdS )SphinxWarningzWarning, treated as error.zWarning, treated as errorNr   r   r   r   r   r      s        $$*HHHr   r   c                      e Zd ZdZdZdS )ApplicationErrorz!Application initialization error.zApplication errorNr   r   r   r   r   r   $   s        ++"HHHr   r   c                  V     e Zd ZdZ	 	 dd fdZedd            ZddZd fdZ xZ	S )ExtensionErrorzExtension error.Nmessagestrorig_excException | Nonemodname
str | NonereturnNonec                t    t                                          |           || _        || _        || _        d S N)super__init__r   r   r   )selfr   r   r   	__class__s       r   r    zExtensionError.__init__-   s6     	!!! r   c                (    | j         r
d| j         z  S dS )NzExtension error (%s)zExtension error)r   r!   s    r   r   zExtensionError.category8   s    < 	%)DL88$$r   c                |    | j         r| j        j         d| j        d| j         dS | j        j         d| j        dS )N(z, ))r   r"   r   r   r$   s    r   __repr__zExtensionError.__repr__?   sS    = 	Un-TTTT$-TTTT.)==DL====r   c                p    t                                                      }| j        r| d| j         dS |S )Nz (exception: r'   )r   __str__r   )r!   
parent_strr"   s     r   r*   zExtensionError.__str__D   s@    WW__&&
= 	@ ??t}????r   )NN)r   r   r   r   r   r   r   r   r   r   )
r   r   r	   r
   r    propertyr   r(   r*   __classcell__)r"   s   @r   r   r   *   s        
 &*"		 	 	 	 	 	 	 % % % X%> > > >
         r   r   c                      e Zd ZdZdZdS )BuildEnvironmentErrorzBuildEnvironment error.zBuildEnvironment errorNr   r   r   r   r0   r0   K   s        !!'HHHr   r0   c                      e Zd ZdZdZdS )ConfigErrorzConfiguration error.zConfiguration errorNr   r   r   r   r2   r2   Q   s        $HHHr   r2   c                      e Zd ZdZdZdS )DocumentErrorzDocument error.zDocument errorNr   r   r   r   r4   r4   W   s        HHHr   r4   c                      e Zd ZdZdZdS )
ThemeErrorzTheme error.zTheme errorNr   r   r   r   r6   r6   ]   s        HHHr   r6   c                      e Zd ZdZdZdS )VersionRequirementErrorz"Incompatible Sphinx version error.zSphinx version errorNr   r   r   r   r8   r8   c   s        ,,%HHHr   r8   c                  &    e Zd ZdZdZddZdd	Zd
S )SphinxParallelErrorzSphinx parallel build error.zSphinx parallel build errorr   r   	tracebackr   r   c                "    || _         || _        d S r   )r   r;   )r!   r   r;   s      r   r    zSphinxParallelError.__init__n   s    "r   c                    | j         S r   )r   r$   s    r   r*   zSphinxParallelError.__str__r   s
    |r   N)r   r   r;   r   r   r   r,   )r   r   r	   r
   r   r    r*   r   r   r   r:   r:   i   sG        &&,H# # # #     r   r:   c                      e Zd ZdZddZdS )PycodeErrorz)Pycode Python source code analyser error.r   r   c                v    | j         d         }t          | j                   dk    r|d| j         d         z  z  }|S )Nr      z (exception was: %r))argslen)r!   ress     r   r*   zPycodeError.__str__y   s;    ilty>>A)DIaL88C
r   Nr,   )r   r   r	   r
   r*   r   r   r   r?   r?   v   s.        33     r   r?   c                      e Zd ZdZdS )NoUriznRaised by builder.get_relative_uri() or from missing-reference handlers
    if there is no URI available.
    Nr   r   r	   r
   r   r   r   rF   rF      s          	Dr   rF   c                      e Zd ZdZdS )FiletypeNotFoundErrorz@Raised by get_filetype() if a filename matches no source suffix.NrG   r   r   r   rI   rI      s        JJDr   rI   N)r
   
__future__r   	Exceptionr   r   r   r   r0   r2   r4   r6   r8   r:   r?   rF   rI   r   r   r   <module>rL      sJ   0 0 " " " " " "    )   0+ + + + +K + + +# # # # #{ # # #    [   B( ( ( ( (K ( ( (% % % % %+ % % %         K             & & & & &k & & &
 
 
 
 
+ 
 
 
    )   	 	 	 	 	I 	 	 		 	 	 	 	I 	 	 	 	 	r   