
    Uj)                     Z     G d  de           Z G d de          Z G d de          ZdS )c                   ,     e Zd ZdZdeddf fdZ xZS )PwdlibErrorz
    Base pwdlib error.
    messagereturnNc                 X    || _         t                                          |           dS )zO
        Args:
            message:
                The error message.
        N)r   super__init__)selfr   	__class__s     U/var/www/app.qaans.com/backend/venv/lib/python3.11/site-packages/pwdlib/exceptions.pyr   zPwdlibError.__init__   s*     !!!!!    __name__
__module____qualname____doc__strr   __classcell__r
   s   @r   r   r      sU         " " " " " " " " " " " "r   r   c                   ,     e Zd ZdZdeddf fdZ xZS )HasherNotAvailablezH
    Error raised when an unavailable hash algorithm was installed.
    hasherr   Nc                 j    || _         d| d| d}t                                          |           dS )z[
        Args:
            hasher:
                The unavailable hash algorithm.
        zThe z^ hash algorithm is not available. Are you sure it's installed? Try to run `pip install pwdlib[z]`.N)r   r   r   )r	   r   r   r
   s      r   r   zHasherNotAvailable.__init__   sT     :6 : :.4: : : 	
 	!!!!!r   r   r   s   @r   r   r      sU         "s "t " " " " " " " " " "r   r   c                   2     e Zd ZdZdeez  ddf fdZ xZS )UnknownHashErrorz[
    Error raised when the hash can't be identified from the list of provided hashers.
    hashr   Nc                 \    || _         d}t                                          |           dS )zY
        Args:
            hash:
                The hash we failed to identify.
        zaThis hash can't be identified. Make sure it's valid and that its corresponding hasher is enabled.N)r   r   r   )r	   r   r   r
   s      r   r   zUnknownHashError.__init__)   s7     	Q 	 	!!!!!r   )r   r   r   r   r   bytesr   r   r   s   @r   r   r   $   sY         "S5[ "T " " " " " " " " " "r   r   N)	Exceptionr   r   r    r   r   <module>r       s   " " " " ") " " "" " " " " " " "(" " " " "{ " " " " "r   