
    Zj                        d dl mZ dZerd dlZd dl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 )    )annotationsFNc                      e Zd ZdZdS )BuildExceptionz<
    Exception raised by :class:`build.ProjectBuilder`.
    N__name__
__module____qualname____doc__     N/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/build/_exceptions.pyr   r                 r   r   c                  2     e Zd ZdZ	 	 dd fdZddZ x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                r    t                                                       || _        || _        || _        d S N)super__init__r   r   _description)selfr   r   r   	__class__s       r   r   zBuildBackendException.__init__   s7     	" 'r   strc                2    | j         r| j         S d| j        S )NzBackend operation failed: )r   r   r   s    r   __str__zBuildBackendException.__str__%   s&     	%$$>DN>>>r   )Nr   )r   r   r   r   r   r   r   r   r   r!   r   r   r	   r
   r   r$   __classcell__r    s   @r   r   r      sk          #'n
	( ( ( ( ( ( (? ? ? ? ? ? ? ?r   r   c                      e Zd ZdZddZdS )BuildSystemTableValidationErrorzZ
    Exception raised when the ``[build-system]`` table in pyproject.toml is invalid.
    r   r!   c                "    d| j         d          S )Nz5Failed to validate `build-system` in pyproject.toml: r   )argsr#   s    r   r$   z'BuildSystemTableValidationError.__str__0   s    UtyQR|UUUr   Nr%   )r   r   r	   r
   r$   r   r   r   r*   r*   +   s8         V V V V V Vr   r*   c                  ,     e Zd ZdZd
 fdZdd	Z xZS )FailedProcessErrorzG
    Exception raised when a setup or preparation operation fails.
    r   subprocess.CalledProcessErrorr   r!   r   r   c                d    t                                                       || _        || _        d S r   )r   r   r   r   )r   r   r   r    s      r   r   zFailedProcessError.__init__9   s.    "'r   c                    | j         S r   )r   r#   s    r   r$   zFailedProcessError.__str__>   s      r   )r   r/   r   r!   r   r   r%   r&   r(   s   @r   r.   r.   4   s[         ( ( ( ( ( (
! ! ! ! ! ! ! !r   r.   c                      e Zd ZdZdS )TypoWarningz7
    Warning raised when a possible typo is found.
    Nr   r   r   r   r3   r3   B   r   r   r3   )
__future__r   TYPE_CHECKING
subprocesstypesr   r   r   r*   r.   Warningr3   r   r   r   <module>r9      s   " " " " " "  LLL    Y   ? ? ? ? ?I ? ? ?4V V V V Vn V V V! ! ! ! ! ! ! !    '     r   