ķ
æö/Nc           @   sĒ   d  Z  d 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 S(   s   D-Bus exceptions.t   DBusExceptiont   MissingErrorHandlerExceptiont   MissingReplyHandlerExceptiont   ValidationExceptiont   IntrospectionParserExceptiont   UnknownMethodExceptiont   NameExistsExceptionc           B   s2   e  Z e Z d    Z d   Z d   Z d   Z RS(   c         O   s~   | j  d d   } | d  k	 s6 t |  d d   d  k rB | |  _ n  | rj t d d j | j      n  t j |  |  d  S(   Nt   namet   _dbus_error_names1   DBusException does not take keyword arguments: %ss   , (	   t   popt   Nonet   getattrR   t	   TypeErrort   joint   keyst	   Exceptiont   __init__(   t   selft   argst   kwargsR   (    (    s3   /usr/lib/python2.7/dist-packages/dbus/exceptions.pyR   *   s    $c         C   s7   t  j |   } |  j d  k	 r/ d |  j | f S| Sd  S(   Ns   %s: %s(   R   t   __str__R   R
   (   R   t   s(    (    s3   /usr/lib/python2.7/dist-packages/dbus/exceptions.pyR   3   s    c         C   s   t  j |   } | j d d  S(   Ns   utf-8t   replace(   R   R   t   decode(   R   R   (    (    s3   /usr/lib/python2.7/dist-packages/dbus/exceptions.pyt   get_dbus_message:   s    c         C   s   |  j  S(   N(   R   (   R   (    (    s3   /usr/lib/python2.7/dist-packages/dbus/exceptions.pyt   get_dbus_name>   s    (   t   __name__t
   __module__t   Falset   include_tracebackR   R   R   R   (    (    (    s3   /usr/lib/python2.7/dist-packages/dbus/exceptions.pyR       s
   
				c           B   s   e  Z e Z d    Z RS(   c         C   s   t  j |  d  d  S(   Ns^   error_handler not defined: if you define a reply_handler you must also define an error_handler(   R    R   (   R   (    (    s3   /usr/lib/python2.7/dist-packages/dbus/exceptions.pyR   E   s    (   R   R   t   TrueR   R   (    (    (    s3   /usr/lib/python2.7/dist-packages/dbus/exceptions.pyR   A   s   c           B   s   e  Z e Z d    Z RS(   c         C   s   t  j |  d  d  S(   Ns^   reply_handler not defined: if you define an error_handler you must also define a reply_handler(   R    R   (   R   (    (    s3   /usr/lib/python2.7/dist-packages/dbus/exceptions.pyR   L   s    (   R   R   R   R   R   (    (    (    s3   /usr/lib/python2.7/dist-packages/dbus/exceptions.pyR   H   s   c           B   s   e  Z e Z d  d  Z RS(   t    c         C   s   t  j |  d |  d  S(   Ns   Error validating string: %s(   R    R   (   R   t   msg(    (    s3   /usr/lib/python2.7/dist-packages/dbus/exceptions.pyR   S   s    (   R   R   R   R   R   (    (    (    s3   /usr/lib/python2.7/dist-packages/dbus/exceptions.pyR   O   s   c           B   s   e  Z e Z d  d  Z RS(   R   c         C   s   t  j |  d |  d  S(   Ns!   Error parsing introspect data: %s(   R    R   (   R   R    (    (    s3   /usr/lib/python2.7/dist-packages/dbus/exceptions.pyR   Z   s    (   R   R   R   R   R   (    (    (    s3   /usr/lib/python2.7/dist-packages/dbus/exceptions.pyR   V   s   c           B   s   e  Z e Z d  Z d   Z RS(   s(   org.freedesktop.DBus.Error.UnknownMethodc         C   s   t  j |  d |  d  S(   Ns   Unknown method: %s(   R    R   (   R   t   method(    (    s3   /usr/lib/python2.7/dist-packages/dbus/exceptions.pyR   b   s    (   R   R   R   R   R   R   (    (    (    s3   /usr/lib/python2.7/dist-packages/dbus/exceptions.pyR   ]   s   c           B   s   e  Z e Z d    Z RS(   c         C   s   t  j |  d |  d  S(   Ns   Bus name already exists: %s(   R    R   (   R   R   (    (    s3   /usr/lib/python2.7/dist-packages/dbus/exceptions.pyR   i   s    (   R   R   R   R   R   (    (    (    s3   /usr/lib/python2.7/dist-packages/dbus/exceptions.pyR   e   s   N(   s   DBusExceptions   MissingErrorHandlerExceptions   MissingReplyHandlerExceptions   ValidationExceptions   IntrospectionParserExceptions   UnknownMethodExceptions   NameExistsException(
   t   __doc__t   __all__R   R    R   R   R   R   R   R   (    (    (    s3   /usr/lib/python2.7/dist-packages/dbus/exceptions.pyt   <module>   s      #