
    i	                    T   S SK Jr  S SKJr  \(       a  S SKJr   " S S\5      r " S S\5      r " S S	\5      r	 " S
 S\5      r
 " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      rg)    )annotations)TYPE_CHECKING)Aliasc                      \ rS rSrSrSrg)GriffeError   )The base exception for all Griffe errors. N__name__
__module____qualname____firstlineno____doc____static_attributes__r
       U/home/james-whalen/.local/lib/python3.13/site-packages/griffe/_internal/exceptions.pyr   r          3r   r   c                      \ rS rSrSrSrg)LoadingError   r	   r
   Nr   r
   r   r   r   r      r   r   r   c                      \ rS rSrSrSrg)NameResolutionError   z>Exception for names that cannot be resolved in a object scope.r
   Nr   r
   r   r   r   r      s    Hr   r   c                      \ rS rSrSrSrg)UnhandledEditableModuleError   zBException for unhandled editables modules, when searching modules.r
   Nr   r
   r   r   r   r      s    Lr   r   c                      \ rS rSrSrSrg)UnimportableModuleError   z.Exception for modules that cannot be imported.r
   Nr   r
   r   r   r   r      s    8r   r   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )AliasResolutionError   z,Exception for alias that cannot be resolved.c                   > Xl          SUR                   SUR                   3n UR                  R                  nUSU SUR
                   S3-  n[        TU ]!  U5        g! [         a     Nf = f)zXInitialize the exception.

Parameters:
    alias: The alias that could not be resolved.
zCould not resolve alias z pointing at z (in :)N)	aliaspathtarget_pathparentrelative_filepathalias_linenoBuiltinModuleErrorsuper__init__)selfr'   messagefilepath	__class__s       r   r/   AliasResolutionError.__init__"   s     "
1,UZZLeFWFWEXY	@||55H xj%*<*<)=Q??G!	 " 		s   A" "
A/.A/)r'   )r'   r   returnNoner   r   r   r   r   r/   r   __classcell__r3   s   @r   r"   r"      s    6" "r   r"   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )CyclicAliasError5   z5Exception raised when a cycle is detected in aliases.c                j   > Xl          [        TU ]	  SSR                  U R                   5      -   5        g)zcInitialize the exception.

Parameters:
    chain: The cyclic chain of items (such as target path).
zCyclic aliases detected:
  z
  N)chainr.   r/   join)r0   r>   r3   s     r   r/   CyclicAliasError.__init__8   s-     !&
:7&++djj:QQRr   )r>   )r>   z	list[str]r5   r6   r7   r9   s   @r   r;   r;   5   s    ?	S 	Sr   r;   c                      \ rS rSrSrSrg)LastNodeErrorD   z?Exception raised when trying to access a next or previous node.r
   Nr   r
   r   r   rB   rB   D   s    Ir   rB   c                      \ rS rSrSrSrg)RootNodeErrorH   zGException raised when trying to use siblings properties on a root node.r
   Nr   r
   r   r   rE   rE   H   s    Qr   rE   c                      \ rS rSrSrSrg)r-   L   zHException raised when trying to access the filepath of a builtin module.r
   Nr   r
   r   r   r-   r-   L   s    Rr   r-   c                      \ rS rSrSrSrg)ExtensionErrorP   z+Base class for errors raised by extensions.r
   Nr   r
   r   r   rJ   rJ   P       5r   rJ   c                      \ rS rSrSrSrg)ExtensionNotLoadedErrorT   z7Exception raised when an extension could not be loaded.r
   Nr   r
   r   r   rN   rN   T   s    Ar   rN   c                      \ rS rSrSrSrg)GitErrorX   z+Exception raised for errors related to Git.r
   Nr   r
   r   r   rQ   rQ   X   rL   r   rQ   N)
__future__r   typingr   griffe._internal.modelsr   	Exceptionr   r   r   r   r   r"   r;   rB   rE   r-   rJ   rN   rQ   r
   r   r   <module>rW      s    #  -4) 44; 4I+ IM; M9k 9"; ",S{ SJK JRK RS S6[ 6Bn B6{ 6r   