%PDF- %PDF-
Mini Shell

Mini Shell

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

�

9*�b�����dZddlZGd�de�ZGd�de�ZGd�de�ZGd	�d
e�ZGd�de�ZGd
�de�ZGd�de�Z	Gd�de�Z
Gd�de�ZGd�de�Zy)z�
    pyudev.device._errors
    =====================

    Errors raised by Device methods.

    .. moduleauthor:: Sebastian Wiesner <lunaryorn@gmail.com>
�Nc�(�eZdZdZej
Zy)�DeviceErrorzP
    Any error raised when messing around w/ or trying to discover devices.
    N��__name__�
__module__�__qualname__�__doc__�abc�ABCMeta�
__metaclass__���0/usr/lib/python3/dist-packages/pyudev/_errors.pyrrs����K�K�Mrrc�(�eZdZdZej
Zy)�DeviceNotFoundErrorz�
    An exception indicating that no :class:`Device` was found.

    .. versionchanged:: 0.5
       Rename from ``NoSuchDeviceError`` to its current name.
    Nrr
rrrr&s����K�K�Mrrc�,�eZdZdZd�Zed��Zd�Zy)�DeviceNotFoundAtPathErrorzh
    A :exc:`DeviceNotFoundError` indicating that no :class:`Device` was
    found at a given path.
    c�0�tj||�y�N�r�__init__)�self�sys_paths  rrz"DeviceNotFoundAtPathError.__init__7s���$�$�T�8�4rc� �|jdS)z<
        The path that caused this error as string.
        r��args�rs rrz"DeviceNotFoundAtPathError.sys_path:���
�y�y��|�rc�8�dj|j�S)NzNo device at {0!r})�formatrrs r�__str__z!DeviceNotFoundAtPathError.__str__As��#�*�*�4�=�=�9�9rN)rrrr	r�propertyrr!r
rrrr1s%���
5�����:rrc��eZdZdZy)�DeviceNotFoundByFileErrorzp
    A :exc:`DeviceNotFoundError` indicating that no :class:`Device` was
    found from the given filename.
    N�rrrr	r
rrr$r$E���rr$c��eZdZdZy)�#DeviceNotFoundByInterfaceIndexErrorzw
    A :exc:`DeviceNotFoundError` indicating that no :class:`Device` was found
    from the given interface index.
    Nr%r
rrr(r(Lr&rr(c��eZdZdZy)�!DeviceNotFoundByKernelDeviceErrorz�
    A :exc:`DeviceNotFoundError` indicating that no :class:`Device` was found
    from the given kernel device string.

    The format of the kernel device string is defined in the
    systemd.journal-fields man pages.
    Nr%r
rrr*r*Ss��rr*c�<�eZdZdZd�Zed��Zed��Zd�Zy)�DeviceNotFoundByNameErrorzj
    A :exc:`DeviceNotFoundError` indicating that no :class:`Device` was
    found with a given name.
    c�2�tj|||�yrr)r�	subsystem�sys_names   rrz"DeviceNotFoundByNameError.__init__cs���$�$�T�9�h�?rc� �|jdS)zA
        The subsystem that caused this error as string.
        rrrs rr.z#DeviceNotFoundByNameError.subsystemfrrc� �|jdS)z@
        The sys name that caused this error as string.
        �rrs rr/z"DeviceNotFoundByNameError.sys_namemrrc�$�dj|�S)Nz+No device {0.sys_name!r} in {0.subsystem!r}�r rs rr!z!DeviceNotFoundByNameError.__str__ts��<�C�C�D�I�IrN)	rrrr	rr"r.r/r!r
rrr,r,]s;���
@���������Jrr,c�<�eZdZdZd�Zed��Zed��Zd�Zy)�DeviceNotFoundByNumberErrorzs
    A :exc:`DeviceNotFoundError` indicating, that no :class:`Device` was found
    for a given device number.
    c�2�tj|||�yrr)r�typ�numbers   rrz$DeviceNotFoundByNumberError.__init__~s���$�$�T�3��7rc� �|jdS)zj
        The device type causing this error as string.  Either ``'char'`` or
        ``'block'``.
        rrrs r�device_typez'DeviceNotFoundByNumberError.device_type�s���y�y��|�rc� �|jdS)zB
        The device number causing this error as integer.
        r2rrs r�
device_numberz)DeviceNotFoundByNumberError.device_number�rrc�$�dj|�S)Nz7No {0.device_type} device with number {0.device_number}r4rs rr!z#DeviceNotFoundByNumberError.__str__�s��K�R�R�SW�X�XrN)	rrrr	rr"r;r=r!r
rrr6r6xs:���
8���������Yrr6c��eZdZdZd�Zy)� DeviceNotFoundInEnvironmentErrorz�
    A :exc:`DeviceNotFoundError` indicating, that no :class:`Device` could
    be constructed from the process environment.
    c��y)NzNo device found in environmentr
rs rr!z(DeviceNotFoundInEnvironmentError.__str__�s��/rN)rrrr	r!r
rrr@r@�s���
0rr@c�"�eZdZdZdZdd�Zd�Zy)�DeviceValueErrorz�
    Raised when a parameter has an unacceptable value.

    May also be raised when the parameter has an unacceptable type.
    z+value '%s' for parameter %s is unacceptableNc�.�||_||_||_y)z�
        Initializer.

        :param object value: the value
        :param str param: the parameter
        :param str msg: an explanatory message
        N)�_value�_param�_msg)r�value�param�msgs    rrzDeviceValueError.__init__�s����������	rc���|jr5|jdz}||j|j|jfzS|j|j|jfzS)Nz: %s)rG�_FMT_STRrErF)r�fmt_strs  rr!zDeviceValueError.__str__�sQ���9�9��m�m�f�,�G��d�k�k�4�;�;��	�	�B�B�B��}�}����T�[�[�9�9�9rr)rrrr	rLrr!r
rrrCrC�s���=�H��:rrC)
r	r
�	Exceptionrrrr$r(r*r,r6r@rCr
rr�<module>rOs���"�� �)� � �+� �:� 3�:�(� 3���*=���(;��J� 3�J�6Y�"5�Y�80�':�0�:�{�:r

Zerion Mini Shell 1.0