Hacked By AnonymousFox

Current Path : /usr/lib64/python3.6/site-packages/dbus/__pycache__/
Upload File :
Current File : //usr/lib64/python3.6/site-packages/dbus/__pycache__/exceptions.cpython-36.pyc

3

iR�VB�@s�dZdZdd	lmZGd
d�de�ZGdd�de�ZGdd�de�ZGd
d�de�ZGdd�de�Z	Gdd�de�Z
Gdd�de�ZdS)zD-Bus exceptions.�
DBusException�MissingErrorHandlerException�MissingReplyHandlerException�ValidationException�IntrospectionParserException�UnknownMethodException�NameExistsException�)�is_py3c@s8eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�ZdS)
rFcOsX|jdd�}|dk	s$t|dd�dkr*||_|rDtddj|j����tj|f|��dS)N�name�_dbus_error_namez1DBusException does not take keyword arguments: %sz, )�pop�getattrr�	TypeError�join�keys�	Exception�__init__)�self�args�kwargsr
�r�"/usr/lib64/python3.6/exceptions.pyr-szDBusException.__init__cCsFt|j�dkrt|j�}ndj|j�}|jdk	r>d|j|fS|SdS)zReturn a unicode error��Nz%s: %s)�lenr�unicoderr)r�srrr�__unicode__6s
zDBusException.__unicode__cCs*tj|�}|jdk	r"d|j|fS|SdS)zReturn a str errorNz%s: %s)r�__str__r)rrrrrrDs

zDBusException.__str__cCsPt|j�dkr*trt|j�}q6t|j�}ndj|j�}t|t�rL|jdd�S|S)Nrrzutf-8�replace)	rrr	�strrr�
isinstance�bytes�decode)rrrrr�get_dbus_messageLs
zDBusException.get_dbus_messagecCs|jS)N)r)rrrr�
get_dbus_nameZszDBusException.get_dbus_nameN)	�__name__�
__module__�__qualname__�include_tracebackrrrr$r%rrrrr!s
	c@seZdZdZdd�ZdS)rTcCstj|d�dS)Nz^error_handler not defined: if you define a reply_handler you must also define an error_handler)rr)rrrrrasz%MissingErrorHandlerException.__init__N)r&r'r(r)rrrrrr]sc@seZdZdZdd�ZdS)rTcCstj|d�dS)Nz^reply_handler not defined: if you define an error_handler you must also define a reply_handler)rr)rrrrrhsz%MissingReplyHandlerException.__init__N)r&r'r(r)rrrrrrdsc@seZdZdZddd�ZdS)rTrcCstj|d|�dS)NzError validating string: %s)rr)r�msgrrrroszValidationException.__init__N)r)r&r'r(r)rrrrrrksc@seZdZdZddd�ZdS)rTrcCstj|d|�dS)Nz!Error parsing introspect data: %s)rr)rr*rrrrvsz%IntrospectionParserException.__init__N)r)r&r'r(r)rrrrrrrsc@seZdZdZdZdd�ZdS)rTz(org.freedesktop.DBus.Error.UnknownMethodcCstj|d|�dS)NzUnknown method: %s)rr)r�methodrrrr~szUnknownMethodException.__init__N)r&r'r(r)rrrrrrrysc@seZdZdZdd�ZdS)rTcCstj|d|�dS)NzBus name already exists: %s)rr)rr
rrrr�szNameExistsException.__init__N)r&r'r(r)rrrrrr�sN)rrrrrrr)�__doc__�__all__Zdbus._compatr	rrrrrrrrrrrr�<module>s<

Hacked By AnonymousFox1.0, Coded By AnonymousFox