o
    ٭hF                     @   s<   d dl Z G dd deZG dd deZG dd deZdS )    Nc                       *   e Zd ZdZdeddf fddZ  ZS )PwdlibErrorz
    Base pwdlib error.
    messagereturnNc                    s   || _ t | dS )zO
        Args:
            message:
                The error message.
        N)r   super__init__)selfr   	__class__ V/var/www/html/stock_analysis/be/venv/lib/python3.10/site-packages/pwdlib/exceptions.pyr   	   s   zPwdlibError.__init____name__
__module____qualname____doc__strr   __classcell__r   r   r	   r   r          r   c                       r   )HasherNotAvailablezH
    Error raised when an unavailable hash algorithm was installed.
    hasherr   Nc                    s(   || _ 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	   r   r   r      s   zHasherNotAvailable.__init__r   r   r   r	   r   r      r   r   c                       s4   e Zd ZdZdejeef ddf fddZ  Z	S )UnknownHashErrorz[
    Error raised when the hash can't be identified from the list of provided hashers.
    hashr   Nc                    s   || _ 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	   r   r   r   ,   s   zUnknownHashError.__init__)
r   r   r   r   typingUnionr   bytesr   r   r   r   r	   r   r   '   s    (r   )r   	Exceptionr   r   r   r   r   r   r   <module>   s    