ó
zkF[c           @   sê  d  Z  d d l Z d d l Z d d l Z d d l m Z d d l m Z 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 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 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* e f d+ „  ƒ  YZ d, e f d- „  ƒ  YZ d. e f d/ „  ƒ  YZ  d0 e f d1 „  ƒ  YZ! d2 e f d3 „  ƒ  YZ" d4 e f d5 „  ƒ  YZ# d6 e f d7 „  ƒ  YZ$ d8 e f d9 „  ƒ  YZ% d: e f d; „  ƒ  YZ& d< e& f d= „  ƒ  YZ' d> e& f d? „  ƒ  YZ( d@ e) f dA „  ƒ  YZ* dB e) f dC „  ƒ  YZ+ dD e) f dE „  ƒ  YZ, dF e) f dG „  ƒ  YZ- dH e) f dI „  ƒ  YZ. dJ e) f dK „  ƒ  YZ/ dL e f dM „  ƒ  YZ0 dN e) f dO „  ƒ  YZ1 dP e) f dQ „  ƒ  YZ2 dR e) f dS „  ƒ  YZ3 dT e) f dU „  ƒ  YZ4 dV e) f dW „  ƒ  YZ5 d S(X   sI   
Exception classes - Subclassing allows you to check for specific errors
iÿÿÿÿN(   t   handler(   t   jsont   StandardError(   t	   ResultSett   BotoClientErrorc           B   s)   e  Z d  Z d „  Z d „  Z d „  Z RS(   s9   
    General Boto Client error (error accessing AWS)
    c         G   s&   t  t |  ƒ j | | Œ | |  _ d  S(   N(   t   superR   t   __init__t   reason(   t   selfR   t   args(    (    s-   lib/python2.7/site-packages/boto/exception.pyR   )   s    c         C   s   d |  j  S(   Ns   BotoClientError: %s(   R   (   R   (    (    s-   lib/python2.7/site-packages/boto/exception.pyt   __repr__-   s    c         C   s   d |  j  S(   Ns   BotoClientError: %s(   R   (   R   (    (    s-   lib/python2.7/site-packages/boto/exception.pyt   __str__0   s    (   t   __name__t
   __module__t   __doc__R   R
   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyR   %   s   		t   SDBPersistenceErrorc           B   s   e  Z RS(    (   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyR   4   s   t   StoragePermissionsErrorc           B   s   e  Z d  Z RS(   sP   
    Permissions error when accessing a bucket or key on a storage service.
    (   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyR   8   s   t   S3PermissionsErrorc           B   s   e  Z d  Z RS(   sA   
    Permissions error when accessing a bucket or key on S3.
    (   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyR   ?   s   t   GSPermissionsErrorc           B   s   e  Z d  Z RS(   sA   
    Permissions error when accessing a bucket or key on GS.
    (   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyR   F   s   t   BotoServerErrorc           B   sS   e  Z d d  „ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 RS(	   c         G   sc  t  t |  ƒ j | | | | Œ | |  _ | |  _ | p: d |  _ d  |  _ d  |  _ d  |  _	 d |  _
 d  |  _ t |  j t ƒ r¿ y |  j j d ƒ |  _ Wq¿ t k
 r» t j j d ƒ q¿ Xn  |  j r_t |  j d ƒ r^|  j j d d  ƒ |  _ d |  j k rC|  j j d i  ƒ } | j d d  ƒ |  _ | j d d  ƒ |  _
 q\|  j j d	 d  ƒ |  _
 q_y& t j |  |  ƒ } | j |  j ƒ Wq_t t j j f k
 r[y‰ t j |  j ƒ } d | k rÑ| d |  _ n  d | k r(d | d k r| d d |  _ n  d | d k r(| d d |  _
 q(n  Wq\t t f k
 rW|  j |  _
 d  |  _ q\Xq_Xn  d  S(
   Nt    s   utf-8s!   Unable to decode body from bytes!t   itemst	   RequestIdt   Errort   Codet   Messaget   message(   R   R   R   t   statusR   t   bodyt   Nonet
   request_idt
   error_codet   _error_messageR   t	   box_usaget
   isinstancet   bytest   decodet   UnicodeDecodeErrort   botot   logt   debugt   hasattrt   getR    t   XmlHandlerWrappert   parseStringt	   TypeErrort   xmlt   saxt   SAXParseExceptionR   t   loadst
   ValueError(   R   R   R   R   R	   t   errort   ht   parsed(    (    s-   lib/python2.7/site-packages/boto/exception.pyR   N   sL    								c         C   s0   | d k r |  j  S| d k r& |  j St ‚ d  S(   Nt   error_messaget   code(   R   R   t   AttributeError(   R   t   name(    (    s-   lib/python2.7/site-packages/boto/exception.pyt   __getattr__‰   s
    c         C   s5   | d k r | |  _  n t t |  ƒ j | | ƒ d  S(   NR6   (   R   R   R   t   __setattr__(   R   R9   t   value(    (    s-   lib/python2.7/site-packages/boto/exception.pyR;      s    c         C   s#   d |  j  j |  j |  j |  j f S(   Ns   %s: %s %s
%s(   t	   __class__R   R   R   R   (   R   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR
   –   s    c         C   s#   d |  j  j |  j |  j |  j f S(   Ns   %s: %s %s
%s(   R=   R   R   R   R   (   R   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR   š   s    c         C   s   d  S(   N(    (   R   R9   t   attrst
   connection(    (    s-   lib/python2.7/site-packages/boto/exception.pyt   startElementž   s    c         C   sd   | d k r | |  _  nH | d k r0 | |  _ n0 | d k rH | |  _ n | d k r` | |  _ n  d  S(   NR   t	   RequestIDR   R   t   BoxUsage(   R   RA   (   R   R   R   R!   R   (   R   R9   R<   R?   (    (    s-   lib/python2.7/site-packages/boto/exception.pyt
   endElement¡   s    c         C   s(   d  |  _ d  |  _ d  |  _ d  |  _ d  S(   N(   R   R   R   R   R!   (   R   (    (    s-   lib/python2.7/site-packages/boto/exception.pyt   _cleanupParsedProperties¬   s    			N(   R   R   R   R   R:   R;   R
   R   R@   RC   RD   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyR   M   s   ;						t   ConsoleOutputc           B   s&   e  Z d d  „ Z d „  Z d „  Z RS(   c         C   s1   | |  _  d  |  _ d  |  _ d  |  _ d  |  _ d  S(   N(   t   parentR   t   instance_idt	   timestampt   commentt   output(   R   RF   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR   ´   s
    				c         C   s   d  S(   N(   R   (   R   R9   R>   R?   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR@   »   s    c         C   sM   | d k r | |  _  n1 | d k r9 t j | ƒ |  _ n t |  | | ƒ d  S(   Nt
   instanceIdRJ   (   RG   t   base64t	   b64decodeRJ   t   setattr(   R   R9   R<   R?   (    (    s-   lib/python2.7/site-packages/boto/exception.pyRC   ¾   s
    N(   R   R   R   R   R@   RC   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRE   ³   s   	t   StorageCreateErrorc           B   s#   e  Z d  Z d d „ Z d „  Z RS(   s>   
    Error creating a bucket or key on a storage service.
    c         C   s)   d  |  _ t t |  ƒ j | | | ƒ d  S(   N(   R   t   bucketR   RO   R   (   R   R   R   R   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR   Ë   s    	c         C   s8   | d k r | |  _  n t t |  ƒ j | | | ƒ Sd  S(   Nt
   BucketName(   RP   R   RO   RC   (   R   R9   R<   R?   (    (    s-   lib/python2.7/site-packages/boto/exception.pyRC   Ï   s    N(   R   R   R   R   R   RC   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRO   Ç   s   t   S3CreateErrorc           B   s   e  Z d  Z RS(   s/   
    Error creating a bucket or key on S3.
    (   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRR   Ö   s   t   GSCreateErrorc           B   s   e  Z d  Z RS(   s/   
    Error creating a bucket or key on GS.
    (   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRS   Ý   s   t   StorageCopyErrorc           B   s   e  Z d  Z RS(   s3   
    Error copying a key on a storage service.
    (   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRT   ä   s   t   S3CopyErrorc           B   s   e  Z d  Z RS(   s$   
    Error copying a key on S3.
    (   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRU   ë   s   t   GSCopyErrorc           B   s   e  Z d  Z RS(   s$   
    Error copying a key on GS.
    (   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRV   ò   s   t   SQSErrorc           B   s5   e  Z d  Z d d „ Z d „  Z d „  Z d „  Z RS(   s0   
    General Error on Simple Queue Service.
    c         C   s2   d  |  _ d  |  _ t t |  ƒ j | | | ƒ d  S(   N(   R   t   detailt   typeR   RW   R   (   R   R   R   R   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR   ý   s    		c         C   s   t  t |  ƒ j | | | ƒ S(   N(   R   RW   R@   (   R   R9   R>   R?   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR@     s    c         C   sP   | d k r | |  _  n4 | d k r0 | |  _ n t t |  ƒ j | | | ƒ Sd  S(   Nt   Detailt   Type(   RX   RY   R   RW   RC   (   R   R9   R<   R?   (    (    s-   lib/python2.7/site-packages/boto/exception.pyRC     s
    c         C   s8   t  t |  ƒ j ƒ  x d D] } t |  | d  ƒ q Wd  S(   NRX   RY   (   RX   RY   (   R   RW   RD   RN   R   (   R   t   p(    (    s-   lib/python2.7/site-packages/boto/exception.pyRD     s    N(   R   R   R   R   R   R@   RC   RD   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRW   ù   s
   		t   SQSDecodeErrorc           B   s)   e  Z d  Z d „  Z d „  Z d „  Z RS(   s-   
    Error when decoding an SQS message.
    c         C   s&   t  t |  ƒ j | | ƒ | |  _ d  S(   N(   R   R]   R   R   (   R   R   R   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR     s    c         C   s   d |  j  S(   Ns   SQSDecodeError: %s(   R   (   R   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR
     s    c         C   s   d |  j  S(   Ns   SQSDecodeError: %s(   R   (   R   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR     s    (   R   R   R   R   R
   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyR]     s   		t   StorageResponseErrorc           B   s5   e  Z d  Z d d „ Z d „  Z d „  Z d „  Z RS(   s3   
    Error in response from a storage service.
    c         C   s)   d  |  _ t t |  ƒ j | | | ƒ d  S(   N(   R   t   resourceR   R^   R   (   R   R   R   R   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR   &  s    	c         C   s   t  t |  ƒ j | | | ƒ S(   N(   R   R^   R@   (   R   R9   R>   R?   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR@   *  s    c         C   s8   | d k r | |  _  n t t |  ƒ j | | | ƒ Sd  S(   Nt   Resource(   R_   R   R^   RC   (   R   R9   R<   R?   (    (    s-   lib/python2.7/site-packages/boto/exception.pyRC   .  s    c         C   s8   t  t |  ƒ j ƒ  x d D] } t |  | d  ƒ q Wd  S(   NR_   (   R   R^   RD   RN   R   (   R   R\   (    (    s-   lib/python2.7/site-packages/boto/exception.pyRD   5  s    N(   R   R   R   R   R   R@   RC   RD   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyR^   "  s
   		t   S3ResponseErrorc           B   s   e  Z d  Z RS(   s$   
    Error in response from S3.
    (   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRa   ;  s   t   GSResponseErrorc           B   s   e  Z d  Z RS(   s$   
    Error in response from GS.
    (   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRb   B  s   t   EC2ResponseErrorc           B   s5   e  Z d  Z d d „ Z d „  Z d „  Z d „  Z RS(   s%   
    Error in response from EC2.
    c         C   sˆ   d  |  _ g  |  _ t t |  ƒ j | | | ƒ g  |  j D] } | j | j f ^ q8 |  _ t |  j ƒ r„ |  j d \ |  _ |  _ n  d  S(   Ni    (	   R   t   errorst   _errorResultSetR   Rc   R   R   R6   t   len(   R   R   R   R   t   e(    (    s-   lib/python2.7/site-packages/boto/exception.pyR   M  s    		+c         C   s3   | d k r+ t  d t f g ƒ |  _ |  j Sd  Sd  S(   Nt   ErrorsR   (   R   t	   _EC2ErrorRe   R   (   R   R9   R>   R?   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR@   V  s    c         C   s    | d k r | |  _  n d  Sd  S(   NRA   (   R   R   (   R   R9   R<   R?   (    (    s-   lib/python2.7/site-packages/boto/exception.pyRC   ]  s    c         C   sA   t  t |  ƒ j ƒ  g  |  _ x d D] } t |  | d  ƒ q# Wd  S(   NRd   (   R   Rc   RD   Re   RN   R   (   R   R\   (    (    s-   lib/python2.7/site-packages/boto/exception.pyRD   c  s    	N(   R   R   R   R   R   R@   RC   RD   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRc   I  s
   			t   JSONResponseErrorc           B   s   e  Z d  Z d d „ Z RS(   sâ  
    This exception expects the fully parsed and decoded JSON response
    body to be passed as the body parameter.

    :ivar status: The HTTP status code.
    :ivar reason: The HTTP reason message.
    :ivar body: The Python dict that represents the decoded JSON
        response body.
    :ivar error_message: The full description of the AWS error encountered.
    :ivar error_code: A short string that identifies the AWS error
        (e.g. ConditionalCheckFailedException)
    c         G   s€   | |  _  | |  _ | |  _ |  j r| |  j j d d  ƒ |  _ |  j j d d  ƒ |  _ |  j r| |  j j d ƒ d |  _ q| n  d  S(   NR   t   __typet   #iÿÿÿÿ(   R   R   R   R*   R   R6   R   t   split(   R   R   R   R   R	   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR   w  s    					N(   R   R   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRj   j  s   t   DynamoDBResponseErrorc           B   s   e  Z RS(    (   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRn   ‚  s   t   SWFResponseErrorc           B   s   e  Z RS(    (   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRo   †  s   t   EmrResponseErrorc           B   s   e  Z d  Z RS(   s$   
    Error in response from EMR
    (   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRp   Š  s   Ri   c           B   s&   e  Z d d  „ Z d „  Z d „  Z RS(   c         C   s   | |  _  d  |  _ d  |  _ d  S(   N(   R?   R   R   R6   (   R   R?   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR   ’  s    		c         C   s   d  S(   N(   R   (   R   R9   R>   R?   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR@   —  s    c         C   s8   | d k r | |  _  n | d k r0 | |  _ n d  Sd  S(   NR   R   (   R   R6   R   (   R   R9   R<   R?   (    (    s-   lib/python2.7/site-packages/boto/exception.pyRC   š  s
    N(   R   R   R   R   R@   RC   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRi   ‘  s   	t   SDBResponseErrorc           B   s   e  Z d  Z RS(   s&   
    Error in responses from SDB.
    (   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRq   £  s   t   AWSConnectionErrorc           B   s   e  Z d  Z RS(   s:   
    General error connecting to Amazon Web Services.
    (   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRr   ª  s   t   StorageDataErrorc           B   s   e  Z d  Z RS(   s6   
    Error receiving data from a storage service.
    (   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRs   ±  s   t   S3DataErrorc           B   s   e  Z d  Z RS(   s'   
    Error receiving data from S3.
    (   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRt   ¸  s   t   GSDataErrorc           B   s   e  Z d  Z RS(   s'   
    Error receiving data from GS.
    (   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRu   ¿  s   t   InvalidUriErrorc           B   s   e  Z d  Z d „  Z RS(   s%   Exception raised when URI is invalid.c         C   s#   t  t |  ƒ j | ƒ | |  _ d  S(   N(   R   Rv   R   R   (   R   R   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR   É  s    (   R   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRv   Æ  s   t   InvalidAclErrorc           B   s   e  Z d  Z d „  Z RS(   s)   Exception raised when ACL XML is invalid.c         C   s#   t  t |  ƒ j | ƒ | |  _ d  S(   N(   R   Rw   R   R   (   R   R   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR   Ñ  s    (   R   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRw   Î  s   t   InvalidCorsErrorc           B   s   e  Z d  Z d „  Z RS(   s*   Exception raised when CORS XML is invalid.c         C   s#   t  t |  ƒ j | ƒ | |  _ d  S(   N(   R   Rx   R   R   (   R   R   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR   Ù  s    (   R   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRx   Ö  s   t   InvalidEncryptionConfigErrorc           B   s   e  Z d  Z d „  Z RS(   sB   Exception raised when GCS encryption configuration XML is invalid.c         C   s#   t  t |  ƒ j | ƒ | |  _ d  S(   N(   R   Ry   R   R   (   R   R   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR   á  s    (   R   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRy   Þ  s   t   InvalidLifecycleConfigErrorc           B   s   e  Z d  Z d „  Z RS(   sA   Exception raised when GCS lifecycle configuration XML is invalid.c         C   s#   t  t |  ƒ j | ƒ | |  _ d  S(   N(   R   Rz   R   R   (   R   R   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR   é  s    (   R   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRz   æ  s   t   NoAuthHandlerFoundc           B   s   e  Z d  Z RS(   sA   Is raised when no auth handlers were found ready to authenticate.(   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyR{   î  s   t   ResumableTransferDispositionc           B   s    e  Z d  Z d Z d Z d Z RS(   t
   START_OVERt   WAIT_BEFORE_RETRYt   ABORT_CUR_PROCESSt   ABORT(   R   R   R}   R~   R   R€   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyR|   ô  s   t   ResumableUploadExceptionc           B   s    e  Z d  Z d „  Z d „  Z RS(   s€   
    Exception raised for various resumable upload problems.

    self.disposition is of type ResumableTransferDisposition.
    c         C   s/   t  t |  ƒ j | | ƒ | |  _ | |  _ d  S(   N(   R   R   R   R   t   disposition(   R   R   R‚   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR     s    	c         C   s   d |  j  |  j f S(   Ns"   ResumableUploadException("%s", %s)(   R   R‚   (   R   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR
     s    (   R   R   R   R   R
   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyR     s   	t   ResumableDownloadExceptionc           B   s    e  Z d  Z d „  Z d „  Z RS(   s‚   
    Exception raised for various resumable download problems.

    self.disposition is of type ResumableTransferDisposition.
    c         C   s/   t  t |  ƒ j | | ƒ | |  _ | |  _ d  S(   N(   R   Rƒ   R   R   R‚   (   R   R   R‚   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR   $  s    	c         C   s   d |  j  |  j f S(   Ns$   ResumableDownloadException("%s", %s)(   R   R‚   (   R   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR
   )  s    (   R   R   R   R   R
   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyRƒ     s   	t   TooManyRecordsExceptionc           B   s   e  Z d  Z d „  Z RS(   sd   
    Exception raised when a search of Route53 records returns more
    records than requested.
    c         C   s#   t  t |  ƒ j | ƒ | |  _ d  S(   N(   R   R„   R   R   (   R   R   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR   4  s    (   R   R   R   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyR„   .  s   t   PleaseRetryExceptionc           B   s#   e  Z d  Z d d „ Z d „  Z RS(   s0   
    Indicates a request should be retried.
    c         C   s   | |  _  | |  _ d  S(   N(   R   t   response(   R   R   R†   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR   =  s    	c         C   s   d |  j  |  j f S(   Ns   PleaseRetryException("%s", %s)(   R   R†   (   R   (    (    s-   lib/python2.7/site-packages/boto/exception.pyR
   A  s    N(   R   R   R   R   R   R
   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyR…   9  s   t   InvalidInstanceMetadataErrorc           B   s   e  Z d  Z d „  Z RS(   s¶   You can set the 'metadata_service_num_attempts' in your boto config file to increase the number of times boto will attempt to retrieve credentials from the instance metadata service.c         C   s+   | d |  j  } t t |  ƒ j | ƒ d  S(   Ns   
(   t   MSGR   R‡   R   (   R   t   msgt	   final_msg(    (    s-   lib/python2.7/site-packages/boto/exception.pyR   O  s    (   R   R   Rˆ   R   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyR‡   H  s   (6   R   RL   t   xml.saxR.   R&   R    t   boto.compatR   R   t   boto.resultsetR   R   R   R   R   R   R   t   objectRE   RO   RR   RS   RT   RU   RV   RW   R]   R^   Ra   Rb   Rc   Rj   Rn   Ro   Rp   Ri   Rq   Rr   Rs   Rt   Ru   t	   ExceptionRv   Rw   Rx   Ry   Rz   R{   R|   R   Rƒ   R„   R…   R‡   (    (    (    s-   lib/python2.7/site-packages/boto/exception.pyt   <module>   s^   f!