
    hv                     t   d dl mZ 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y")#    )TimeoutError)List)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y)r   z-
    Base class for all SMTP exceptions.
    messagereturnNc                "    || _         |f| _        y N)r   args)selfr   s     \/var/www/html/retail-simulation-api/retail/lib/python3.12/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y)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y)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y)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y)r   zA
    A timeout occurred while connecting to the SMTP server.
    Nr%   r#   r   r   r   r   5   r'   r   r   c                       e Zd ZdZy)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y)r
   zI
    A command or argument sent to the SMTP server is not supported.
    Nr%   r#   r   r   r
   r
   A   r'   r   r
   c                   $    e Zd ZdZdededdfdZy)r   z?
    Base class for all server responses with error codes.
    coder   r   Nc                2    || _         || _        ||f| _        y r   )r-   r   r   )r   r-   r   s      r   r   zSMTPResponseException.__init__L   s    	7O	r   r   r   r    r!   intr"   r   r#   r   r   r   r   G   s!    $S $3 $d $r   r   c                       e Zd ZdZy)r   zM
    The SMTP server returned an invalid response code after connecting.
    Nr%   r#   r   r   r   r   R   r'   r   r   c                       e Zd ZdZy)r	   z&
    Server refused HELO or EHLO.
    Nr%   r#   r   r   r	   r	   X   r'   r   r	   c                       e Zd ZdZy)r   z&
    Server refused DATA content.
    Nr%   r#   r   r   r   r   ^   r'   r   r   c                       e Zd ZdZy)r   zP
    Server refused our AUTH request; may be caused by invalid credentials.
    Nr%   r#   r   r   r   r   d   r'   r   r   c                   (    e Zd ZdZdedededdfdZy)r   z1
    SMTP server refused the message sender.
    r-   r   senderr   Nc                B    || _         || _        || _        |||f| _        y r   )r-   r   r6   r   )r   r-   r   r6   s       r   r   zSMTPSenderRefused.__init__o   s%    	7F+	r   r/   r#   r   r   r   r   j   s(    ,S ,3 , ,4 ,r   r   c                   (    e Zd ZdZdedededdfdZy)r   z2
    SMTP server refused a message recipient.
    r-   r   	recipientr   Nc                B    || _         || _        || _        |||f| _        y r   )r-   r   r9   r   )r   r-   r   r9   s       r   r   zSMTPRecipientRefused.__init__{   s%    	"7I.	r   r/   r#   r   r   r   r   v   s(    /S /3 /3 /d /r   r   c                   &    e Zd ZdZdee   ddfdZy)r   z2
    SMTP server refused multiple recipients.
    
recipientsr   Nc                "    || _         |f| _        y r   )r<   r   )r   r<   s     r   r   zSMTPRecipientsRefused.__init__   s    $M	r   )r   r   r    r!   r   r   r   r#   r   r   r   r      s     "4(<#= "T "r   r   N)asyncior   typingr   __all__	Exceptionr   ConnectionErrorr   r   r   r   r   r
   r   r   r	   r   r   r   r   r   r#   r   r   <module>rC      s      &I ]O }o }l .0@ + } $M $46F ) ) 3 	,- 	,	/0 	/"M "r   