o
    Vh                     @  s   d dl m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
G dd de
ZdddZG dd de
ZG dd de
ZdS )    )annotations)find_similar_namesc                   @  s   e Zd ZU dZdZded< dS )	CleoErrorz
    Base Cleo exception.
    Nz
int | None	exit_code)__name__
__module____qualname____doc__r   __annotations__ r   r   l/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/cleo/exceptions/__init__.pyr      s   
 r   c                   @     e Zd ZdZdS )CleoLogicErrorza
    Raised when there is error in command arguments
    and/or options configuration logic.
    Nr   r   r   r	   r   r   r   r   r          r   c                   @  r   )CleoRuntimeErrorzJ
    Raised when command is called with invalid options or arguments.
    Nr   r   r   r   r   r      r   r   c                   @  r   )CleoValueErrorz?
    Raised when wrong value was given to Cleo components.
    Nr   r   r   r   r   r      r   r   c                   @  r   )CleoNoSuchOptionErrorz9
    Raised when command does not have given option.
    Nr   r   r   r   r   r   !   r   r   c                   @  r   )CleoUserErrorz)
    Base exception for user errors.
    Nr   r   r   r   r   r   '   r   r   c                   @  r   )CleoMissingArgumentsErrorzF
    Raised when called command was not given required arguments.
    Nr   r   r   r   r   r   -   r   r   namestrnames	list[str]return
str | Nonec                 C  sF   |sd S t | |}|sd S d}d|t|dkrdnd||f S )Nz
    zDid you mean    zthis?zone of these?)r   joinlen)r   r   suggested_namesnewline_separatorr   r   r   _suggest_similar_names3   s   
r!   c                      $   e Zd ZdZdd fd	d
Z  ZS )CleoCommandNotFoundErrorz4
    Raised when called command does not exist.
    Nr   r   commandslist[str] | Noner   Nonec                   :   d| d}|rt ||}|r|d| 7 }t | d S )NzThe command "z" does not exist.

r!   super__init__)selfr   r$   messagesuggestions	__class__r   r   r+   J      
z!CleoCommandNotFoundError.__init__N)r   r   r$   r%   r   r&   r   r   r   r	   r+   __classcell__r   r   r/   r   r#   E       r#   c                      r"   )CleoNamespaceNotFoundErrorz7
    Raised when called namespace has no commands.
    Nr   r   
namespacesr%   r   r&   c                   r'   )NzThere are no commands in the "z" namespace.r(   r)   )r,   r   r7   r-   r.   r/   r   r   r+   X   r1   z#CleoNamespaceNotFoundError.__init__r2   )r   r   r7   r%   r   r&   r3   r   r   r/   r   r6   S   r5   r6   N)r   r   r   r   r   r   )
__future__r   cleo._utilsr   	Exceptionr   r   r   r   r   r   r   r!   r#   r6   r   r   r   r   <module>   s    
