
    E^e.                        d 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 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 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 )$zCAll exceptions used in the Cookiecutter code base are defined here.c                       e Zd ZdZdS )CookiecutterExceptionze
    Base exception class.

    All Cookiecutter-specific exceptions should subclass this class.
    N__name__
__module____qualname____doc__     7lib/python3.11/site-packages/cookiecutter/exceptions.pyr   r                 r
   r   c                       e Zd ZdZdS )NonTemplatedInputDirExceptionz
    Exception for when a project's input dir is not templated.

    The name of the input directory should always contain a string that is
    rendered to something else, so that input_dir != output_dir.
    Nr   r	   r
   r   r   r                 r
   r   c                       e Zd ZdZdS )UnknownTemplateDirExceptionz
    Exception for ambiguous project template directory.

    Raised when Cookiecutter cannot determine which directory is the project
    template, e.g. more than one dir appears to be a template dir.
    Nr   r	   r
   r   r   r      r   r
   r   c                       e Zd ZdZdS )MissingProjectDirz
    Exception for missing generated project directory.

    Raised during cleanup when remove_repo() can't find a generated project
    directory inside of a repo.
    Nr   r	   r
   r   r   r       r   r
   r   c                       e Zd ZdZdS )ConfigDoesNotExistExceptionz
    Exception for missing config file.

    Raised when get_config() is passed a path to a config file, but no file
    is found at that path.
    Nr   r	   r
   r   r   r   +   r   r
   r   c                       e Zd ZdZdS )InvalidConfigurationz
    Exception for invalid configuration file.

    Raised if the global configuration file is not valid YAML or is
    badly constructed.
    Nr   r	   r
   r   r   r   4   r   r
   r   c                       e Zd ZdZdS )UnknownRepoTypez^
    Exception for unknown repo types.

    Raised if a repo's type cannot be determined.
    Nr   r	   r
   r   r   r   =   r   r
   r   c                       e Zd ZdZdS )VCSNotInstalledz
    Exception when version control is unavailable.

    Raised if the version control system (git or hg) is not installed.
    Nr   r	   r
   r   r   r   E   r   r
   r   c                       e Zd ZdZdS )ContextDecodingExceptionzp
    Exception for failed JSON decoding.

    Raised when a project's JSON context file can not be decoded.
    Nr   r	   r
   r   r   r   M   r   r
   r   c                       e Zd ZdZdS )OutputDirExistsExceptionzw
    Exception for existing output directory.

    Raised when the output directory of the project exists already.
    Nr   r	   r
   r   r   r   U   r   r
   r   c                       e Zd ZdZdS )InvalidModeExceptionz
    Exception for incompatible modes.

    Raised when cookiecutter is called with both `no_input==True` and
    `replay==True` at the same time.
    Nr   r	   r
   r   r!   r!   ]   r   r
   r!   c                       e Zd ZdZdS )FailedHookExceptionzL
    Exception for hook failures.

    Raised when a hook script fails.
    Nr   r	   r
   r   r#   r#   f   r   r
   r#   c                       e Zd ZdZd Zd ZdS )UndefinedVariableInTemplatez
    Exception for out-of-scope variables.

    Raised when a template uses a variable which is not defined in the
    context.
    c                 0    || _         || _        || _        dS )z%Exception for out-of-scope variables.Nmessageerrorcontext)selfr(   r)   r*   s       r   __init__z$UndefinedVariableInTemplate.__init__v   s    
r
   c                 >    | j          d| j        j          d| j         S )z3Text representation of UndefinedVariableInTemplate.z. Error message: z. Context: r'   )r+   s    r   __str__z#UndefinedVariableInTemplate.__str__|   s9     | ' '"j0' '' '	
r
   N)r   r   r   r   r,   r.   r	   r
   r   r%   r%   n   s<           
 
 
 
 
r
   r%   c                       e Zd ZdZdS )UnknownExtensionzz
    Exception for un-importable extension.

    Raised when an environment is unable to import a required extension.
    Nr   r	   r
   r   r0   r0      r   r
   r0   c                       e Zd ZdZdS )RepositoryNotFoundzk
    Exception for missing repo.

    Raised when the specified cookiecutter repository doesn't exist.
    Nr   r	   r
   r   r2   r2      r   r
   r2   c                       e Zd ZdZdS )RepositoryCloneFailedzd
    Exception for un-cloneable repo.

    Raised when a cookiecutter template can't be cloned.
    Nr   r	   r
   r   r4   r4      r   r
   r4   c                       e Zd ZdZdS )InvalidZipRepositoryz{
    Exception for bad zip repo.

    Raised when the specified cookiecutter repository isn't a valid
    Zip archive.
    Nr   r	   r
   r   r6   r6      r   r
   r6   N)r   	Exceptionr   r   r   r   r   r   r   r   r   r   r!   r#   r%   r0   r2   r4   r6   r	   r
   r   <module>r8      s   I I    I       $9       "7       -       "7       0       +       +       4       4       0       /   
 
 
 
 
"7 
 
 
.    ,       .       1       0     r
   