
    Zj^                        d dl mZ dZ G d de          Z G d dee          Z G d dee          Z G d	 d
ee          Z G d dee          Z	 G d de          Z
 G d de          Z G d de          Z G d de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 )"    )TimeoutError)SMTPAuthenticationErrorSMTPConnectErrorSMTPDataErrorSMTPExceptionSMTPHeloErrorSMTPNotSupportedSMTPRecipientRefusedSMTPRecipientsRefusedSMTPResponseExceptionSMTPSenderRefusedSMTPServerDisconnectedSMTPTimeoutErrorSMTPConnectTimeoutErrorSMTPReadTimeoutErrorSMTPConnectResponseErrorc                   "    e Zd ZdZdeddfdZdS )r   z-
    Base class for all SMTP exceptions.
    messagereturnNc                $    || _         |f| _        d S N)r   args)selfr   s     U/var/www/app.qaans.com/backend/venv/lib/python3.11/site-packages/aiosmtplib/errors.py__init__zSMTPException.__init__   s    J			    )__name__
__module____qualname____doc__strr    r   r   r   r      s@          4      r   r   c                       e Zd ZdZdS )r   zd
    The connection was lost unexpectedly, or a command was run that requires
    a connection.
    Nr   r   r   r    r"   r   r   r   r   !   s           r   r   c                       e Zd ZdZdS )r   z@
    An error occurred while connecting to the SMTP server.
    Nr$   r"   r   r   r   r   (              r   r   c                       e Zd ZdZdS )r   zB
    A timeout occurred while performing a network operation.
    Nr$   r"   r   r   r   r   .   r&   r   r   c                       e Zd ZdZdS )r   zA
    A timeout occurred while connecting to the SMTP server.
    Nr$   r"   r   r   r   r   4   r&   r   r   c                       e Zd ZdZdS )r   zO
    A timeout occurred while waiting for a response from the SMTP server.
    Nr$   r"   r   r   r   r   :   r&   r   r   c                       e Zd ZdZdS )r	   zI
    A command or argument sent to the SMTP server is not supported.
    Nr$   r"   r   r   r	   r	   @   r&   r   r	   c                   &    e Zd ZdZdededdfdZdS )r   z?
    Base class for all server responses with error codes.
    coder   r   Nc                4    || _         || _        ||f| _        d S r   )r,   r   r   )r   r,   r   s      r   r   zSMTPResponseException.__init__K   s    	7O			r   r   r   r   r    intr!   r   r"   r   r   r   r   F   sG         $S $3 $d $ $ $ $ $ $r   r   c                       e Zd ZdZdS )r   zM
    The SMTP server returned an invalid response code after connecting.
    Nr$   r"   r   r   r   r   Q   r&   r   r   c                       e Zd ZdZdS )r   z&
    Server refused HELO or EHLO.
    Nr$   r"   r   r   r   r   W   r&   r   r   c                       e Zd ZdZdS )r   z&
    Server refused DATA content.
    Nr$   r"   r   r   r   r   ]   r&   r   r   c                       e Zd ZdZdS )r   zP
    Server refused our AUTH request; may be caused by invalid credentials.
    Nr$   r"   r   r   r   r   c   r&   r   r   c                   *    e Zd ZdZdedededdfdZdS )r   z1
    SMTP server refused the message sender.
    r,   r   senderr   Nc                D    || _         || _        || _        |||f| _        d S r   )r,   r   r5   r   )r   r,   r   r5   s       r   r   zSMTPSenderRefused.__init__n   s)    	7F+			r   r.   r"   r   r   r   r   i   sN         ,S ,3 , ,4 , , , , , ,r   r   c                   *    e Zd ZdZdedededdfdZdS )r
   z2
    SMTP server refused a message recipient.
    r,   r   	recipientr   Nc                D    || _         || _        || _        |||f| _        d S r   )r,   r   r8   r   )r   r,   r   r8   s       r   r   zSMTPRecipientRefused.__init__z   s)    	"7I.			r   r.   r"   r   r   r
   r
   u   sN         /S /3 /3 /d / / / / / /r   r
   c                   .    e Zd ZdZdee         ddfdZdS )r   z2
    SMTP server refused multiple recipients.
    
recipientsr   Nc                $    || _         |f| _        d S r   )r;   r   )r   r;   s     r   r   zSMTPRecipientsRefused.__init__   s    $M			r   )r   r   r   r    listr
   r   r"   r   r   r   r      sF         "4(<#= "T " " " " " "r   r   N)asyncior   __all__	Exceptionr   ConnectionErrorr   r   r   r   r   r	   r   r   r   r   r   r   r
   r   r"   r   r   <module>rB      s              &    I       ]O       }o       }l       .0@       +       }   $ $ $ $ $M $ $ $    46F       )       )       3   	, 	, 	, 	, 	,- 	, 	, 	,	/ 	/ 	/ 	/ 	/0 	/ 	/ 	/" " " " "M " " " " "r   