o
    wÔ+f'  ã                   @   s$   G d d„ de ƒZG dd„ deƒZdS )c                   @   s   e Zd ZdZdS )ÚSendGridExceptionz*Wrapper/default SendGrid-related exceptionN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   úS/var/www/html/venv/lib/python3.10/site-packages/sendgrid/helpers/mail/exceptions.pyr      s    r   c                   @   sR   e Zd ZdZ		ddd„Zedd„ ƒZejdd„ ƒZed	d
„ ƒZejdd
„ ƒZdS )ÚApiKeyIncludedExceptionzJException raised for when Twilio SendGrid API Key included in message textú
Email bodyú Twilio SendGrid API Key detectedc                 C   s0   d| _ d| _|dur|| _|dur|| _dS dS )a  Create an exception for when Twilio SendGrid API Key included in message text

            :param expression: Input expression in which the error occurred
            :type expression: string
            :param message: Explanation of the error
            :type message: string
        N)Ú_expressionÚ_messageÚ
expressionÚmessage)Úselfr   r   r   r   r   Ú__init__   s   

ÿz ApiKeyIncludedException.__init__c                 C   ó   | j S )zMInput expression in which the error occurred

        :rtype: string
        ©r   ©r   r   r   r   r   !   ó   z"ApiKeyIncludedException.expressionc                 C   ó
   || _ dS )z•Input expression in which the error occurred

        :param value: Input expression in which the error occurred
        :type value: string
        Nr   ©r   Úvaluer   r   r   r   )   ó   
c                 C   r   )z9Explanation of the error

        :rtype: string
        ©r   r   r   r   r   r   2   r   zApiKeyIncludedException.messagec                 C   r   )zmExplanation of the error

        :param value: Explanation of the error
        :type value: string
        Nr   r   r   r   r   r   :   r   N)r	   r
   )	r   r   r   r   r   Úpropertyr   Úsetterr   r   r   r   r   r      s    
þ


r   N)Ú	Exceptionr   r   r   r   r   r   Ú<module>   s   