Class DeviceNotFoundException
- Namespace
- Bluetooth.Abstractions.Scanning.Exceptions
- Assembly
- Bluetooth.Abstractions.Scanning.dll
Represents an exception that occurs when a device is not found.
public class DeviceNotFoundException : DeviceExplorationException, ISerializable
- Inheritance
-
DeviceNotFoundException
- Implements
- Inherited Members
Constructors
DeviceNotFoundException(IBluetoothScanner, Exception?)
Initializes a new instance of the DeviceNotFoundException class.
public DeviceNotFoundException(IBluetoothScanner scanner, Exception? innerException = null)
Parameters
scannerIBluetoothScannerThe Bluetooth scanner associated with the exception.
innerExceptionExceptionThe inner exception that caused the current exception, if any.
DeviceNotFoundException(IBluetoothScanner, string, Exception?)
Initializes a new instance of the DeviceNotFoundException class.
public DeviceNotFoundException(IBluetoothScanner scanner, string id, Exception? innerException = null)
Parameters
scannerIBluetoothScannerThe Bluetooth scanner associated with the exception.
idstringThe device ID that was not found.
innerExceptionExceptionThe inner exception that caused the current exception, if any.