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: //lib/python3/dist-packages/dbus/__pycache__/exceptions.cpython-312.pyc
�

�t3bc���dZdZddlmZGd�de�ZGd�de�ZGd�d	e�ZGd
�de�ZGd�d
e�Z	Gd�de�Z
Gd�de�Zy)zD-Bus exceptions.)�
DBusException�MissingErrorHandlerException�MissingReplyHandlerException�ValidationException�IntrospectionParserException�UnknownMethodException�NameExistsException�)�is_py3c�0�eZdZdZ	d�Zd�Zd�Zd�Zd�Zy)rFc���|jdd�}|�
t|dd��||_|r+tddj	|j��z��t
j|g|���y)N�name�_dbus_error_namez1DBusException does not take keyword arguments: %sz, )�pop�getattrr�	TypeError�join�keys�	Exception�__init__)�self�args�kwargsr
s    �1/usr/lib/python3/dist-packages/dbus/exceptions.pyrzDBusException.__init__/sl���z�z�&�$�'����w�t�-?��F�N�$(�D�!���O�"�i�i����
�6�7�8�
8����4�'�$�'�c���t|j�dkDrt|j�}ndj|j�}|j�|j�d|��S|S)zReturn a unicode error���: )�lenr�unicoderr�r�ss  r�__unicode__zDBusException.__unicode__8sV���t�y�y�>�A����	�	�"�A�����	�	�"�A�� � �,�#�4�4�a�8�8��Hrc�j�tj|�}|j�|j�d|��S|S)zReturn a str errorr)r�__str__rr!s  rr%zDBusException.__str__Fs4�����d�#��� � �,�#�4�4�a�8�8��Hrc��t|j�dkDr2trt|j�}n1t	|j�}ndj|j�}t
|t�r|jdd�S|S)Nrrzutf-8�replace)	rrr
�strr r�
isinstance�bytes�decoder!s  r�get_dbus_messagezDBusException.get_dbus_messageNsb���t�y�y�>�A�����	�	�N���D�I�I�&������	�	�"�A��a����8�8�G�Y�/�/��rc��|jS)N)r�rs r�
get_dbus_namezDBusException.get_dbus_name\s���$�$�$rN)	�__name__�
__module__�__qualname__�include_tracebackrr#r%r,r/�rrrr#s&�����(����%rrc��eZdZdZd�Zy)rTc�0�tj|d�y)Nz^error_handler not defined: if you define a reply_handler you must also define an error_handler�rrr.s rrz%MissingErrorHandlerException.__init__c������t�&F�	GrN�r0r1r2r3rr4rrrr_�����Grrc��eZdZdZd�Zy)rTc�0�tj|d�y)Nz^reply_handler not defined: if you define an error_handler you must also define a reply_handlerr7r.s rrz%MissingReplyHandlerException.__init__jr8rNr9r4rrrrfr:rrc��eZdZdZdd�Zy)rTc�6�tj|d|z�y)NzError validating string: %sr7�r�msgs  rrzValidationException.__init__qs�����t�%B�3�%F�GrN�rr9r4rrrrms����Hrrc��eZdZdZdd�Zy)rTc�6�tj|d|z�y)Nz!Error parsing introspect data: %sr7r?s  rrz%IntrospectionParserException.__init__xs�����t�%H��%L�MrNrAr9r4rrrrts����Nrrc��eZdZdZdZd�Zy)rTz(org.freedesktop.DBus.Error.UnknownMethodc�6�tj|d|z�y)NzUnknown method: %sr7)r�methods  rrzUnknownMethodException.__init__�s�����t�%9�&�%@�ArN)r0r1r2r3rrr4rrrr{s����A��Brrc��eZdZdZd�Zy)rTc�6�tj|d|z�y)NzBus name already exists: %sr7)rr
s  rrzNameExistsException.__init__�s�����t�%B�4�%G�HrNr9r4rrrr�s����IrrN)�__doc__�__all__�dbus._compatr
rrrrrrrrr4rr�<module>rLsu���4"��
 �:%�I�:%�xG�=�G�G�=�G�H�-�H�N�=�N�B�]�B�I�-�Ir