%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/dbus/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/dbus/__pycache__/exceptions.cpython-312.pyc

�

@ia���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�dkDrt|j�}ndj|j�}t	|t
�r|j
dd�S|S)Nrrzutf-8�replace)rr�strr�
isinstance�bytes�decoder!s  r�get_dbus_messagezDBusException.get_dbus_messageNsQ���t�y�y�>�A���D�I�I��A�����	�	�"�A��a����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#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__`������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__gr8rNr9r4rrrrcr:rrc��eZdZdZdd�Zy)rTc�6�tj|d|z�y)NzError validating string: %sr7�r�msgs  rrzValidationException.__init__ns�����t�%B�3�%F�GrN�rr9r4rrrrjs����Hrrc��eZdZdZdd�Zy)rTc�6�tj|d|z�y)Nz!Error parsing introspect data: %sr7r?s  rrz%IntrospectionParserException.__init__us�����t�%H��%L�MrNrAr9r4rrrrqs����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)r0r1r2r3rrr4rrrrxs����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"��
 �7%�I�7%�rG�=�G�G�=�G�H�-�H�N�=�N�B�]�B�I�-�Ir

Zerion Mini Shell 1.0