
    -h	                       d dl mZ d dlmZ er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 )    )annotations)TYPE_CHECKING)Aliasc                      e Zd ZdZdS )GriffeError)The base exception for all Griffe errors.N__name__
__module____qualname____doc__     O/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/_griffe/exceptions.pyr   r              3333r   r   c                      e Zd ZdZdS )LoadingErrorr   Nr	   r   r   r   r   r      r   r   r   c                      e Zd ZdZdS )NameResolutionErrorz>Exception for names that cannot be resolved in a object scope.Nr	   r   r   r   r   r      s        HHHHr   r   c                      e Zd ZdZdS )UnhandledEditableModuleErrorzBException for unhandled editables modules, when searching modules.Nr	   r   r   r   r   r      s        LLLLr   r   c                      e Zd ZdZdS )UnimportableModuleErrorz.Exception for modules that cannot be imported.Nr	   r   r   r   r   r      s        8888r   r   c                  $     e Zd ZdZd fdZ xZS )AliasResolutionErrorz,Exception for alias that cannot be resolved.aliasr   returnNonec                    || _         	 d|j         d|j         }	 |j        j        }|d| d|j         dz  }n# t          $ r Y nw xY wt                                          |           dS )zpInitialize the exception.

        Parameters:
            alias: The alias that could not be resolved.
        zCould not resolve alias z pointing at z (in :)N)	r   pathtarget_pathparentrelative_filepathalias_linenoBuiltinModuleErrorsuper__init__)selfr   messagefilepath	__class__s       r   r)   zAliasResolutionError.__init__"   s     "
1YUZYYeFWYY	@|5H ?x??%*<????GG " 	 	 	D	 	!!!!!s   ; 
AA)r   r   r   r   r
   r   r   r   r)   __classcell__r-   s   @r   r   r      sC        66" " " " " " " " " "r   r   c                  $     e Zd ZdZd fdZ xZS )CyclicAliasErrorz5Exception raised when a cycle is detected in aliases.chain	list[str]r   r   c                    || _         	 t                                          dd                    | j                   z              dS )z{Initialize the exception.

        Parameters:
            chain: The cyclic chain of items (such as target path).
        zCyclic aliases detected:
  z
  N)r3   r(   r)   join)r*   r3   r-   s     r   r)   zCyclicAliasError.__init__8   sA     !&
:7&++dj:Q:QQRRRRRr   )r3   r4   r   r   r.   r0   s   @r   r2   r2   5   sM        ??	S 	S 	S 	S 	S 	S 	S 	S 	S 	Sr   r2   c                      e Zd ZdZdS )LastNodeErrorz?Exception raised when trying to access a next or previous node.Nr	   r   r   r   r8   r8   D   s        IIIIr   r8   c                      e Zd ZdZdS )RootNodeErrorzGException raised when trying to use siblings properties on a root node.Nr	   r   r   r   r:   r:   H   s        QQQQr   r:   c                      e Zd ZdZdS )r'   zHException raised when trying to access the filepath of a builtin module.Nr	   r   r   r   r'   r'   L   s        RRRRr   r'   c                      e Zd ZdZdS )ExtensionErrorz+Base class for errors raised by extensions.Nr	   r   r   r   r=   r=   P           5555r   r=   c                      e Zd ZdZdS )ExtensionNotLoadedErrorz7Exception raised when an extension could not be loaded.Nr	   r   r   r   r@   r@   T   s        AAAAr   r@   c                      e Zd ZdZdS )GitErrorz+Exception raised for errors related to Git.Nr	   r   r   r   rB   rB   X   r>   r   rB   N)
__future__r   typingr   _griffe.modelsr   	Exceptionr   r   r   r   r   r   r2   r8   r:   r'   r=   r@   rB   r   r   r   <module>rG      s   # " " " " "             %$$$$$$4 4 4 4 4) 4 4 44 4 4 4 4; 4 4 4I I I I I+ I I IM M M M M; M M M9 9 9 9 9k 9 9 9" " " " "; " " ",S S S S S{ S S SJ J J J JK J J JR R R R RK R R RS S S S S S S S6 6 6 6 6[ 6 6 6B B B B Bn B B B6 6 6 6 6{ 6 6 6 6 6r   