@iadZdZddlmZGddeZGddeZGdd eZGd d eZGd d eZ GddeZ GddeZ y)zD-Bus exceptions.) DBusExceptionMissingErrorHandlerExceptionMissingReplyHandlerExceptionValidationExceptionIntrospectionParserExceptionUnknownMethodExceptionNameExistsException)is_py3c0eZdZdZ dZdZdZdZdZy)rFc|jdd}| t|dd||_|r+tddj |j zt j|g|y)Nname_dbus_error_namez1DBusException does not take keyword arguments: %sz, )popgetattrr TypeErrorjoinkeys Exception__init__)selfargskwargsr s 1/usr/lib/python3/dist-packages/dbus/exceptions.pyrzDBusException.__init__/slzz&$'  wt-?FN$(D ! O"ii 678 84'$'ct|jdkDrt|j}ndj|j}|j|jd|S|S)zReturn a unicode error: )lenrunicoderrrss r __unicode__zDBusException.__unicode__8sV tyy>A  "A "A  ,#44a8 8Hrcjtj|}|j|jd|S|S)zReturn a str errorr)r__str__rr!s rr%zDBusException.__str__Fs4   d #  ,#44a8 8Hrct|jdkDrt|j}ndj|j}t |t r|j ddS|S)Nrrzutf-8replace)rrstrr isinstancebytesdecoder!s rget_dbus_messagezDBusException.get_dbus_messageNsQ tyy>A DIIA "A a 88GY/ /rc|jS)N)rrs r get_dbus_namezDBusException.get_dbus_nameYs$$$rN) __name__ __module__ __qualname__include_tracebackrr#r%r,r/rrrr#s&(  %rrceZdZdZdZy)rTc0tj|dy)Nz^error_handler not defined: if you define a reply_handler you must also define an error_handlerrrr.s rrz%MissingErrorHandlerException.__init__`t&F GrNr0r1r2r3rr4rrrr\GrrceZdZdZdZy)rTc0tj|dy)Nz^reply_handler not defined: if you define an error_handler you must also define a reply_handlerr7r.s rrz%MissingReplyHandlerException.__init__gr8rNr9r4rrrrcr:rrceZdZdZddZy)rTc6tj|d|zy)NzError validating string: %sr7rmsgs rrzValidationException.__init__nst%B3%FGrNrr9r4rrrrjsHrrceZdZdZddZy)rTc6tj|d|zy)Nz!Error parsing introspect data: %sr7r?s rrz%IntrospectionParserException.__init__ust%H%LMrNrAr9r4rrrrqsNrrceZdZdZdZdZy)rTz(org.freedesktop.DBus.Error.UnknownMethodc6tj|d|zy)NzUnknown method: %sr7)rmethods rrzUnknownMethodException.__init__}st%9&%@ArN)r0r1r2r3rrr4rrrrxsABrrceZdZdZdZy)rTc6tj|d|zy)NzBus name already exists: %sr7)rr s rrzNameExistsException.__init__st%B4%GHrNr9r4rrrrsIrrN) __doc____all__ dbus._compatr rrrrrrrrr4rrrLsu4 "  7%I7%rG=GG=GH-HN=NB]BI-Ir