o
    ÕÜÓhY	  ã                   @  st   d Z ddlmZ G dd„ deƒZG dd„ deƒZG dd„ deƒZG d	d
„ d
eƒZG dd„ deƒZG d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__© r
   r
   úG/var/www/html/ai/venv/lib/python3.10/site-packages/flake8/exceptions.pyr      ó    r   c                   @  r   )Ú	EarlyQuitz4Except raised when encountering a KeyboardInterrupt.Nr   r
   r
   r
   r   r   	   r   r   c                   @  r   )ÚExecutionErrorz,Exception raised during execution of Flake8.Nr   r
   r
   r
   r   r      r   r   c                      ó0   e Zd ZdZdZd‡ fd	d
„Zddd„Z‡  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                   ó   || _ || _tƒ  ||¡ dS )z,Initialize our FailedToLoadPlugin exception.N©r   Úoriginal_exceptionÚsuperÚ__init__©Úselfr   r   ©Ú	__class__r
   r   r      ó   zFailedToLoadPlugin.__init__c                 C  ó   | j | j| jdœ S ©úFormat our exception message.)ÚnameÚexc©ÚFORMATr   r   ©r   r
   r
   r   Ú__str__   ó   þzFailedToLoadPlugin.__str__©r   r   r   r   r   r   ©r   r   ©r   r   r   r	   r'   r   r)   Ú__classcell__r
   r
   r   r   r      ó
    r   c                      r   )Ú PluginRequestedUnknownParametersz(The plugin requested unknown parameters.z7"%(name)s" requested unknown parameters causing %(exc)sr   r   r   r   r   r   c                   r   )z1Pop certain keyword arguments for initialization.Nr   r   r   r
   r   r   )   r    z)PluginRequestedUnknownParameters.__init__c                 C  r!   r"   r&   r(   r
   r
   r   r)   /   r*   z(PluginRequestedUnknownParameters.__str__r+   r,   r-   r
   r
   r   r   r0   $   r/   r0   c                      s0   e Zd ZdZdZd‡ fd
d„Zddd„Z‡  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                   s&   || _ || _|| _tƒ  |||¡ dS )z1Utilize keyword arguments for message generation.N)r2   r   r   r   r   )r   r2   r   r   r   r
   r   r   <   s   zPluginExecutionFailed.__init__c                 C  s   | j j| j| j| jdS )r#   )ÚfnameÚpluginr%   )r'   Úformatr2   r   r   r(   r
   r
   r   r)   H   s
   ýzPluginExecutionFailed.__str__)r2   r   r   r   r   r   r   r   r,   r-   r
   r
   r   r   r1   7   s
    r1   N)
r	   Ú
__future__r   r   r   r   r   r   r0   r1   r
   r
   r
   r   Ú<module>   s    