PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` 3 `] @sBddlmZmZddZddZddZGdd d eZeZd S) )GLibGiocsfdd}|S)z;Register and map decorated exception class to a DBus error.cstj||S)N)error_registrationregister_error)cls)codedomainname/usr/lib/python3.6/error.py decoratedsz!register_error..decoratedr )r rrr r )rrr r rsrcsfdd}|S)z.Map decorated exception class to a DBus error.cstj||S)N)r map_error)r) error_namer r r s zmap_error..decoratedr )rr r )rr r s r cCstj||S)z9Map decorated exception class to all unknown DBus errors.)rmap_by_default)rr r r rs rc@s`eZdZdZdZeZeZddZddZ ddZ d d Z d d Z d dZ ddZddZdS)ErrorRegistrationz,Class for mapping exceptions to DBus errors.NcCs ||_dS)z%Set the exception class as a default.N)_default)self exception_clsr r r r#sz ErrorRegistration.map_by_defaultcCs||j|<||j|<dS)z'Map the exception class to a DBus name.N)_map _reversed_map)rrr r r r r 's zErrorRegistration.map_errorcCs|j||tjj|||S)z4Map and register the exception class to a DBus name.)r r DBusErrorr)rrr rrr r r r,s z ErrorRegistration.register_errorcCs |j|jkS)zIs the exception registered?) __class__r)robjr r r is_registered_exception1sz)ErrorRegistration.is_registered_exceptioncCs|jj|jS)z#Get the DBus name of the exception.)rgetr)rrr r r get_dbus_name5szErrorRegistration.get_dbus_namecCs|jj||jS)z0Get the exception class mapped to the DBus name.)rrr)rr r r r get_exception_class9sz%ErrorRegistration.get_exception_classcCs*djd|}|j|r&|t|dS|S)z'Transform the message of the exception.z{}:{}: z GDBus.ErrorN)format startswithlen)rr messageprefixr r r transform_message=s  z#ErrorRegistration.transform_messagecCsnt|tjs|Stjj|s |Stjj|}|j|}|s>|S|j||j }||}||_ |j |_ |j |_|S)z,Transform the remote error to the exception.) isinstancerErrorrrZis_remote_errorZget_remote_errorrr"r Z dbus_namerZ dbus_domainrZ dbus_code)rer rr Z exceptionr r r transform_exceptionFs    z%ErrorRegistration.transform_exception)__name__ __module__ __qualname____doc__rdictrrrr rrrrr"r&r r r r rs rN) Z gi.repositoryrrrr robjectrrr r r r s   E