+
     h  c                   s    R t ^ RIt ! R R]4      t ! R R]4      t ! R R]4      t ! R R	]4      t ! R
 R]4      t ! R R]4      t ! R R]4      t	 ! R R]4      t
 ! R R]4      t ! R R]4      tR# )z
pyudev.device._errors
=====================

Errors raised by Device methods.

.. moduleauthor:: Sebastian Wiesner <lunaryorn@gmail.com>
Nc                   s2    ] tR t^tRt]P                  tRtR# )DeviceErrorzH
Any error raised when messing around w/ or trying to discover devices.
 N	__name__
__module____qualname____firstlineno____doc__abcZABCMetaZ__metaclass____static_attributes__r       3/usr/lib/python3.14/site-packages/pyudev/_errors.pyr    r       s     KKMr
   r    c                   s2    ] tR t^&tRt]P                  tRtR# )DeviceNotFoundErrorz
An exception indicating that no :class:`Device` was found.

.. versionchanged:: 0.5
   Rename from ``NoSuchDeviceError`` to its current name.
r   Nr   r   r
   r   r   r   &   s     KKMr
   r   c                   s@   a  ] tR t^1t o RtR t]R 4       tR tRt	V t
R# )DeviceNotFoundAtPathErrorz\
A :exc:`DeviceNotFoundError` indicating that no :class:`Device` was
found at a given path.
c                s0    \         P                  W4       R # Nr   __init__)selfsys_paths   &&r   r   Z"DeviceNotFoundAtPathError.__init__7   s    $$T4r
   c                (    V P                   ^ ,          # )z,
The path that caused this error as string.
Zargsr      &r   r   Z"DeviceNotFoundAtPathError.sys_path:       
 yy|r
   c                s8    R P                  V P                  4      # )zNo device at {0!r})formatr   r   r   r   __str__Z!DeviceNotFoundAtPathError.__str__A   s    #**4==99r
   r   N)r   r   r   r   r   r   propertyr   r   r	   __classdictcell__Z__classdict__   @r   r   r   1   s-     
5  : :r
   r   c                   s    ] tR t^EtRtRtR# )DeviceNotFoundByFileErrorzd
A :exc:`DeviceNotFoundError` indicating that no :class:`Device` was
found from the given filename.
r   Nr   r   r   r   r   r	   r   r
   r   r   r   E       r
   r   c                   s    ] tR t^LtRtRtR# )#DeviceNotFoundByInterfaceIndexErrorzk
A :exc:`DeviceNotFoundError` indicating that no :class:`Device` was found
from the given interface index.
r   Nr   r   r
   r   r!   r!   L   r    r
   r!   c                   s    ] tR t^StRtRtR# )!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.
r   Nr   r   r
   r   r"   r"   S   s    r
   r"   c                   sP   a  ] tR t^]t o RtR t]R 4       t]R 4       tR t	Rt
V tR# )DeviceNotFoundByNameErrorz^
A :exc:`DeviceNotFoundError` indicating that no :class:`Device` was
found with a given name.
c                2    \         P                  WV4       R # r   r   )r   	subsystemsys_name   &&&r   r   Z"DeviceNotFoundByNameError.__init__c   s    $$Th?r
   c                r   )z1
The subsystem that caused this error as string.
r   r   r   r   r%   Z#DeviceNotFoundByNameError.subsystemf   r   r
   c                (    V P                   ^,          # )z0
The sys name that caused this error as string.
r   r   r   r   r&   Z"DeviceNotFoundByNameError.sys_namem   r   r
   c                $    R P                  V 4      # )z+No device {0.sys_name!r} in {0.subsystem!r}r   r   r   r   r   Z!DeviceNotFoundByNameError.__str__t   s    <CCDIIr
   r   N)r   r   r   r   r   r   r   r%   r&   r   r	   r   r   r   r   r#   r#   ]   sD     
@    J Jr
   r#   c                   sP   a  ] tR t^xt o RtR t]R 4       t]R 4       tR t	Rt
V tR# )DeviceNotFoundByNumberErrorzg
A :exc:`DeviceNotFoundError` indicating, that no :class:`Device` was found
for a given device number.
c                r$   r   r   )r   ZtypZnumberr'   r   r   Z$DeviceNotFoundByNumberError.__init__~   s    $$T7r
   c                r   )zR
The device type causing this error as string.  Either ``'char'`` or
``'block'``.
r   r   r   r   device_typeZ'DeviceNotFoundByNumberError.device_type   s     yy|r
   c                r(   )z2
The device number causing this error as integer.
r   r   r   r   device_numberZ)DeviceNotFoundByNumberError.device_number   r   r
   c                r)   )z7No {0.device_type} device with number {0.device_number}r*   r   r   r   r   Z#DeviceNotFoundByNumberError.__str__   s    KRRSWXXr
   r   N)r   r   r   r   r   r   r   r,   r-   r   r	   r   r   r   r   r+   r+   x   sC     
8    Y Yr
   r+   c                   s*   a  ] tR t^t o RtR tRtV tR# ) DeviceNotFoundInEnvironmentErrorzu
A :exc:`DeviceNotFoundError` indicating, that no :class:`Device` could
be constructed from the process environment.
c                s    R # )zNo device found in environmentr   r   r   r   r   Z(DeviceNotFoundInEnvironmentError.__str__   s    /r
   r   N)r   r   r   r   r   r   r	   r   r   r   r   r.   r.      s     
0 0r
   r.   c                   s8   a  ] tR t^t o RtRtRR ltR tRtV t	R# )DeviceValueErrorzu
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                s*    Wn         W n        W0n        R# )zu
Initializer.

:param object value: the value
:param str param: the parameter
:param str msg: an explanatory message
N)_value_param_msg)r   ZvalueZparamZmsgs   &&&&r   r   ZDeviceValueError.__init__   s     	r
   c                s    V P                   '       d=   V P                  R ,           pWP                  V P                  V P                   3,          # V P                  V P                  V P                  3,          # )z: %s)r2   _FMT_STRr0   r1   )r   Zfmt_strs   & r   r   ZDeviceValueError.__str__   sQ    999mmf,Gkk4;;		BBB}}T[[999r
   )r2   r1   r0   r   )
r   r   r   r   r   r3   r   r   r	   r   r   r   r   r/   r/      s       =H: :r
   r/   )r   r   Z	Exceptionr    r   r   r   r!   r"   r#   r+   r.   r/   r   r
   r   <module>r4      s   "  )   +  : 3 :( 3 *= (; J 3 J6Y"5 Y80': 0:{ :r
   