ó
º9—^c           @   s0   d  e  f d „  ƒ  YZ d e f d „  ƒ  YZ d S(   t   SendGridExceptionc           B   s   e  Z d  Z RS(   s*   Wrapper/default SendGrid-related exception(   t   __name__t
   __module__t   __doc__(    (    (    sB   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/exceptions.pyR       s   t   ApiKeyIncludedExceptionc           B   s_   e  Z d  Z d d d „ Z e d „  ƒ Z e j d „  ƒ Z e d „  ƒ Z e j d „  ƒ Z RS(   sJ   Exception raised for when Twilio SendGrid API Key included in message texts
   Email bodys    Twilio SendGrid API Key detectedc         C   sF   d |  _ d |  _ | d k	 r* | |  _ n  | d k	 rB | |  _ n  d S(   s  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(   t   Nonet   _expressiont   _messaget
   expressiont   message(   t   selfR   R	   (    (    sB   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/exceptions.pyt   __init__   s    
		c         C   s   |  j  S(   sM   Input expression in which the error occurred

        :rtype: string
        (   R   (   R
   (    (    sB   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/exceptions.pyR   !   s    c         C   s   | |  _  d S(   s•   Input expression in which the error occurred

        :param value: Input expression in which the error occurred
        :type value: string
        N(   R   (   R
   t   value(    (    sB   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/exceptions.pyR   )   s    c         C   s   |  j  S(   s9   Explanation of the error

        :rtype: string
        (   R   (   R
   (    (    sB   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/exceptions.pyR	   2   s    c         C   s   | |  _  d S(   sm   Explanation of the error

        :param value: Explanation of the error
        :type value: string
        N(   R   (   R
   R   (    (    sB   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/exceptions.pyR	   :   s    (   R   R   R   R   t   propertyR   t   setterR	   (    (    (    sB   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/exceptions.pyR      s   	N(   t	   ExceptionR    R   (    (    (    sB   /tmp/pip-unpacked-wheel-v7av_c/sendgrid/helpers/mail/exceptions.pyt   <module>   s   