ó
è?F[c           @   s¨   d  d l  m Z d  d l m Z d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d	 e f d
 „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ	 d S(   iÿÿÿÿ(   t   BotoServerError(   t   ResponseFactoryt   ResponseErrorFactoryc           B   s   e  Z d d  „ Z RS(   c         C   sH   t  | | d | ƒ} |  j | j d t ƒ } | j GH| | | d | ƒS(   Nt   bodyt    (   R    t   find_elementt
   error_codet   ResponseErrort   __name__(   t   selft   statust   reasonR   t   servert   supplied(    (    s1   lib/python2.7/site-packages/boto/mws/exception.pyt   __call__   s    N(   R   t
   __module__t   NoneR   (    (    (    s1   lib/python2.7/site-packages/boto/mws/exception.pyR      s   R   c           B   s&   e  Z d  Z e Z d „  Z d „  Z RS(   s#   
    Undefined response error.
    c         C   s   d j  |  j |  ƒ S(   Ns'   {0.__name__}({1.reason}: "{1.message}")(   t   formatt	   __class__(   R	   (    (    s1   lib/python2.7/site-packages/boto/mws/exception.pyt   __repr__(   s    c         C   sJ   |  j  r |  j  j ƒ  d p d } d j |  |  j |  j r@ d pC d | ƒ S(   Ns   
R   s+   {1.__name__}: {0.reason} {2}
{3}{0.message}s   (Retriable)(   t   __doc__t   stripR   R   t   retry(   R	   t   doc(    (    s1   lib/python2.7/site-packages/boto/mws/exception.pyt   __str__,   s    "	(   R   R   R   t   FalseR   R   R   (    (    (    s1   lib/python2.7/site-packages/boto/mws/exception.pyR   "   s   	t   RetriableResponseErrorc           B   s   e  Z e Z RS(    (   R   R   t   TrueR   (    (    (    s1   lib/python2.7/site-packages/boto/mws/exception.pyR   3   s   t   InvalidParameterValuec           B   s   e  Z d  Z RS(   sA   
    One or more parameter values in the request is invalid.
    (   R   R   R   (    (    (    s1   lib/python2.7/site-packages/boto/mws/exception.pyR   7   s   t   InvalidParameterc           B   s   e  Z d  Z RS(   s;   
    One or more parameters in the request is invalid.
    (   R   R   R   (    (    (    s1   lib/python2.7/site-packages/boto/mws/exception.pyR   =   s   t   InvalidAddressc           B   s   e  Z d  Z RS(   s   
    Invalid address.
    (   R   R   R   (    (    (    s1   lib/python2.7/site-packages/boto/mws/exception.pyR   C   s   N(
   t   boto.exceptionR    t   boto.mws.responseR   R   R   R   R   R   R   (    (    (    s1   lib/python2.7/site-packages/boto/mws/exception.pyt   <module>   s   	