U
    ä«Fc'  ã                   @   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   úD/tmp/pip-unpacked-wheel-7j3043uk/sendgrid/helpers/mail/exceptions.pyr      s   r   c                   @   sN   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   s,   d| _ d| _|dk	r|| _|dk	r(|| _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   s   | j S )zMInput expression in which the error occurred

        :rtype: string
        ©r   ©r   r   r   r   r   !   s    z"ApiKeyIncludedException.expressionc                 C   s
   || _ 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   )   s    c                 C   s   | j S )z9Explanation of the error

        :rtype: string
        ©r   r   r   r   r   r   2   s    zApiKeyIncludedException.messagec                 C   s
   || _ dS )zmExplanation of the error

        :param value: Explanation of the error
        :type value: string
        Nr   r   r   r   r   r   :   s    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   