HEX
Server: Apache/2.4.67 (Debian)
System: Linux vps-b2547eb4 6.1.0-41-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
User: root (0)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/dbus/__pycache__/exceptions.cpython-311.pyc
�

@ia����dZdZddlmZGd�de��ZGd�de��ZGd�d	e��ZGd
�de��ZGd�d
e��Z	Gd�de��Z
Gd�de��ZdS)zD-Bus exceptions.)�
DBusException�MissingErrorHandlerException�MissingReplyHandlerException�ValidationException�IntrospectionParserException�UnknownMethodException�NameExistsException�)�is_py3c�2�eZdZdZ	d�Zd�Zd�Zd�Zd�ZdS)rFc��|�dd��}|�t|dd���||_|r7tdd�|�����z���t
j|g|�R�dS)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__/s����z�z�&�$�'�'����w�t�-?��F�F�N�$(�D�!��	8��O�"�i�i����
�
�6�6�7�8�8�
8���4�'�$�'�'�'�'�'�'�c��t|j��dkrt|j��}nd�|j��}|j�|j�d|��S|S)zReturn a unicode error��N�: )�lenr�unicoderr�r�ss  r�__unicode__zDBusException.__unicode__8s_���t�y�>�>�A�����	�"�"�A�A�����	�"�"�A�� �,�#�4�4�4�a�a�8�8��Hrc�`�t�|��}|j�|j�d|��S|S)zReturn a str errorNr)r�__str__rr!s  rr%zDBusException.__str__Fs9�����d�#�#��� �,�#�4�4�4�a�a�8�8��Hrc���t|j��dkrt|j��}nd�|j��}t	|t
��r|�dd��S|S)Nrrzutf-8�replace)rr�strr�
isinstance�bytes�decoder!s  r�get_dbus_messagezDBusException.get_dbus_messageNsb���t�y�>�>�A����D�I���A�A�����	�"�"�A��a����	0��8�8�G�Y�/�/�/��rc��|jS)N)r�rs r�
get_dbus_namezDBusException.get_dbus_nameYs���$�$rN)	�__name__�
__module__�__qualname__�include_tracebackrr#r%r,r/�rrrr#sj���������(�(�(�������	�	�	�%�%�%�%�%rrc��eZdZdZd�ZdS)rTc�<�t�|d��dS)Nz^error_handler not defined: if you define a reply_handler you must also define an error_handler�rrr.s rrz%MissingErrorHandlerException.__init__`�1�����t�&F�	G�	G�	G�	G�	GrN�r0r1r2r3rr4rrrr\�.��������G�G�G�G�Grrc��eZdZdZd�ZdS)rTc�<�t�|d��dS)Nz^reply_handler not defined: if you define an error_handler you must also define a reply_handlerr7r.s rrz%MissingReplyHandlerException.__init__gr8rNr9r4rrrrcr:rrc��eZdZdZdd�ZdS)rTrc�B�t�|d|z��dS)NzError validating string: %sr7�r�msgs  rrzValidationException.__init__ns$�����t�%B�3�%F�G�G�G�G�GrN�rr9r4rrrrjs4��������H�H�H�H�H�Hrrc��eZdZdZdd�ZdS)rTrc�B�t�|d|z��dS)Nz!Error parsing introspect data: %sr7r?s  rrz%IntrospectionParserException.__init__us$�����t�%H��%L�M�M�M�M�MrNrAr9r4rrrrqs4��������N�N�N�N�N�Nrrc��eZdZdZdZd�ZdS)rTz(org.freedesktop.DBus.Error.UnknownMethodc�B�t�|d|z��dS)NzUnknown method: %sr7)r�methods  rrzUnknownMethodException.__init__}s$�����t�%9�&�%@�A�A�A�A�ArN)r0r1r2r3rrr4rrrrxs4��������A��B�B�B�B�Brrc��eZdZdZd�ZdS)rTc�B�t�|d|z��dS)NzBus name already exists: %sr7)rr
s  rrzNameExistsException.__init__�s$�����t�%B�4�%G�H�H�H�H�HrNr9r4rrrr�s.��������I�I�I�I�IrrN)�__doc__�__all__�dbus._compatr
rrrrrrrrr4rr�<module>rLs�����4"��
 ������7%�7%�7%�7%�7%�I�7%�7%�7%�rG�G�G�G�G�=�G�G�G�G�G�G�G�G�=�G�G�G�H�H�H�H�H�-�H�H�H�N�N�N�N�N�=�N�N�N�B�B�B�B�B�]�B�B�B�I�I�I�I�I�-�I�I�I�I�Ir