CasperSecurity

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

o

�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@s:eZdZdZ	dd�Zdd�Zdd�Zdd	�Zd
d�ZdS)
rFcOsZ|�dd�}|dust|dd�dur||_|r"tdd�|�����tj|g|�R�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__cCsBt|j�dkr
t|j�}nd�|j�}|jdurd|j|fS|S)zReturn a unicode error��N�%s: %s)�lenr�unicoderr�r�srrr�__unicode__8s
zDBusException.__unicode__cCs&t�|�}|jdurd|j|fS|S)zReturn a str errorNr)r�__str__rrrrrr Fs

zDBusException.__str__cCsPt|j�dkrtrt|j�}nt|j�}nd�|j�}t|t�r&|�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@�eZdZdZdd�ZdS)rTcC�t�|d�dS)Nz^error_handler not defined: if you define a reply_handler you must also define an error_handler�rrr'rrrrc�z%MissingErrorHandlerException.__init__N�r)r*r+r,rrrrrr_�rc@r-)rTcCr.)Nz^reply_handler not defined: if you define an error_handler you must also define a reply_handlerr/r'rrrrjr0z%MissingReplyHandlerException.__init__Nr1rrrrrfr2rc@�eZdZdZddd�ZdS)rTrcC�t�|d|�dS)NzError validating string: %sr/�r�msgrrrrq�zValidationException.__init__N�rr1rrrrrm�rc@r3)rTrcCr4)Nz!Error parsing introspect data: %sr/r5rrrrxr7z%IntrospectionParserException.__init__Nr8r1rrrrrtr9rc@seZdZdZdZdd�ZdS)rTz(org.freedesktop.DBus.Error.UnknownMethodcCr4)NzUnknown method: %sr/)r�methodrrrr�r7zUnknownMethodException.__init__N)r)r*r+r,rrrrrrr{src@r-)rTcCr4)NzBus name already exists: %sr/)rr
rrrr�r7zNameExistsException.__init__Nr1rrrrr�r2rN)�__doc__�__all__�dbus._compatr	rrrrrrrrrrrr�<module>s<
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY