o
    VhY                     @  sp   d dl mZ d dlZd dl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 )    )annotationsNc                   @     e Zd ZdZdS )BuildExceptionz<
    Exception raised by :class:`build.ProjectBuilder`.
    N__name__
__module____qualname____doc__ r
   r
   e/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/build/_exceptions.pyr          r   c                      s2   e Zd ZdZ		dd fddZdddZ  ZS )BuildBackendExceptionz:
    Exception raised when a backend operation fails.
    NNNN	exception	Exceptiondescription
str | Noneexc_infoXtuple[type[BaseException], BaseException, types.TracebackType] | tuple[None, None, None]returnNonec                   s    t    || _|| _|| _d S N)super__init__r   r   _description)selfr   r   r   	__class__r
   r   r      s   


zBuildBackendException.__init__strc                 C  s   | j r| j S d| jS )NzBackend operation failed: )r   r   r   r
   r
   r   __str__!   s   zBuildBackendException.__str__)Nr   )r   r   r   r   r   r   r   r   r   r   r   r   r   r	   r   r    __classcell__r
   r
   r   r   r      s    r   c                   @  s   e Zd ZdZdddZdS )BuildSystemTableValidationErrorzZ
    Exception raised when the ``[build-system]`` table in pyproject.toml is invalid.
    r   r   c                 C  s   d| j d  S )Nz5Failed to validate `build-system` in pyproject.toml: r   )argsr   r
   r
   r   r    ,   s   z'BuildSystemTableValidationError.__str__Nr!   )r   r   r   r	   r    r
   r
   r
   r   r$   '   s    r$   c                      s,   e Zd ZdZd fdd	Zdd
dZ  ZS )FailedProcessErrorzG
    Exception raised when a setup or preparation operation fails.
    r   subprocess.CalledProcessErrorr   r   r   r   c                   s   t    || _|| _d S r   )r   r   r   r   )r   r   r   r   r
   r   r   5   s   

zFailedProcessError.__init__c                 C  s   | j S r   )r   r   r
   r
   r   r    :   s   zFailedProcessError.__str__)r   r'   r   r   r   r   r!   r"   r
   r
   r   r   r&   0   s    r&   c                   @  r   )TypoWarningz7
    Warning raised when a possible typo is found.
    Nr   r
   r
   r
   r   r(   >   r   r(   )
__future__r   
subprocesstypesr   r   r   r$   r&   Warningr(   r
   r
   r
   r   <module>   s    	