
    cY	                        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	dS )z$Exception classes for all of Flake8.    )annotationsc                      e Zd ZdZdS )Flake8ExceptionzPlain Flake8 exception.N__name__
__module____qualname____doc__     1lib/python3.11/site-packages/flake8/exceptions.pyr   r      s        !!!!r   r   c                      e Zd ZdZdS )	EarlyQuitz4Except raised when encountering a KeyboardInterrupt.Nr   r   r   r   r   r   	   s        >>>>r   r   c                      e Zd ZdZdS )ExecutionErrorz,Exception raised during execution of Flake8.Nr   r   r   r   r   r      s        6666r   r   c                  0     e Zd ZdZdZd fd	Zdd
Z xZS )FailedToLoadPluginz-Exception raised when a plugin fails to load.z7Flake8 failed to load plugin "%(name)s" due to %(exc)s.plugin_namestr	exception	ExceptionreturnNonec                h    || _         || _        t                                          ||           dS )z,Initialize our FailedToLoadPlugin exception.Nr   original_exceptionsuper__init__selfr   r   	__class__s      r   r   zFailedToLoadPlugin.__init__   3    &"+i00000r   c                0    | j         | j        | j        dz  S Format our exception message.)nameexcFORMATr   r   r    s    r   __str__zFailedToLoadPlugin.__str__   '    {$*
 
 
 	
r   r   r   r   r   r   r   r   r   r   r   r	   r
   r)   r   r+   __classcell__r!   s   @r   r   r      s\        77FF1 1 1 1 1 1
 
 
 
 
 
 
 
r   r   c                  0     e Zd ZdZdZd fd	Zdd
Z xZS ) PluginRequestedUnknownParametersz(The plugin requested unknown parameters.z7"%(name)s" requested unknown parameters causing %(exc)sr   r   r   r   r   r   c                h    || _         || _        t                                          ||           dS )z1Pop certain keyword arguments for initialization.Nr   r   s      r   r   z)PluginRequestedUnknownParameters.__init__)   r"   r   c                0    | j         | j        | j        dz  S r$   r(   r*   s    r   r+   z(PluginRequestedUnknownParameters.__str__/   r,   r   r-   r.   r/   r1   s   @r   r3   r3   $   s\        22FF1 1 1 1 1 1
 
 
 
 
 
 
 
r   r3   c                  0     e Zd ZdZdZd fd
ZddZ xZS )PluginExecutionFailedz#The plugin failed during execution.z:{fname}: "{plugin}" failed during execution due to {exc!r}filenamer   r   r   r   r   r   c                x    || _         || _        || _        t                                          |||           dS )z1Utilize keyword arguments for message generation.N)r8   r   r   r   r   )r    r8   r   r   r!   s       r   r   zPluginExecutionFailed.__init__<   s>     !&"+;	:::::r   c                Z    | j                             | j        | j        | j                  S )r%   )fnamepluginr'   )r)   formatr8   r   r   r*   s    r   r+   zPluginExecutionFailed.__str__H   s2    {!!-#' " 
 
 	
r   )r8   r   r   r   r   r   r   r   r.   r/   r1   s   @r   r7   r7   7   s\        --IF
; 
; 
; 
; 
; 
;
 
 
 
 
 
 
 
r   r7   N)
r
   
__future__r   r   r   r   r   r   r3   r7   r   r   r   <module>r?      s#   * * " " " " " "" " " " "i " " "? ? ? ? ? ? ? ?7 7 7 7 7_ 7 7 7
 
 
 
 
 
 
 
&
 
 
 
 
 
 
 
&
 
 
 
 
O 
 
 
 
 
r   