HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/dbus/__pycache__/exceptions.cpython-38.pyc
U

�t3bc�@s�dZdZddlmZGdd�de�ZGdd�de�ZGdd	�d	e�ZGd
d�de�ZGdd
�d
e�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|�dd�}|dk	s$t|dd�dkr*||_|rDtdd�|�����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�1/usr/lib/python3/dist-packages/dbus/exceptions.pyr/s�zDBusException.__init__cCsFt|j�dkrt|j�}nd�|j�}|jdk	r>d|j|fS|SdS)zReturn a unicode error��N�%s: %s)�lenr�unicoderr�r�srrr�__unicode__8s
zDBusException.__unicode__cCs*t�|�}|jdk	r"d|j|fS|SdS)zReturn a str errorNr)r�__str__rrrrrr Fs

zDBusException.__str__cCsPt|j�dkr*trt|j�}q6t|j�}nd�|j�}t|t�rL|�dd�S|S)Nrrzutf-8�replace)	rrr	�strrr�
isinstance�bytes�decoderrrr�get_dbus_messageNs
zDBusException.get_dbus_messagecCs|jS)N)r�rrrr�
get_dbus_name\szDBusException.get_dbus_nameN)	�__name__�
__module__�__qualname__�include_tracebackrrr r&r(rrrrr#s
	rc@seZdZdZdd�ZdS)rTcCst�|d�dS)Nz^error_handler not defined: if you define a reply_handler you must also define an error_handler�rrr'rrrrcsz%MissingErrorHandlerException.__init__N�r)r*r+r,rrrrrr_src@seZdZdZdd�ZdS)rTcCst�|d�dS)Nz^reply_handler not defined: if you define an error_handler you must also define a reply_handlerr-r'rrrrjsz%MissingReplyHandlerException.__init__Nr.rrrrrfsrc@seZdZdZddd�ZdS)rTrcCst�|d|�dS)NzError validating string: %sr-�r�msgrrrrqszValidationException.__init__N)rr.rrrrrmsrc@seZdZdZddd�ZdS)rTrcCst�|d|�dS)Nz!Error parsing introspect data: %sr-r/rrrrxsz%IntrospectionParserException.__init__N)rr.rrrrrtsrc@seZdZdZdZdd�ZdS)rTz(org.freedesktop.DBus.Error.UnknownMethodcCst�|d|�dS)NzUnknown method: %sr-)r�methodrrrr�szUnknownMethodException.__init__N)r)r*r+r,rrrrrrr{src@seZdZdZdd�ZdS)rTcCst�|d|�dS)NzBus name already exists: %sr-)rr
rrrr�szNameExistsException.__init__Nr.rrrrr�srN)�__doc__�__all__�dbus._compatr	rrrrrrrrrrrr�<module>s<