Class DeviceException
- Namespace
- Bluetooth.Abstractions.Scanning.Exceptions
- Assembly
- Bluetooth.Abstractions.Scanning.dll
Represents an exception that occurs in Bluetooth device operations.
public abstract class DeviceException : BluetoothScanningException, ISerializable
- Inheritance
-
DeviceException
- Implements
- Derived
- Inherited Members
Remarks
This exception provides information about the Bluetooth device associated with the error, allowing for easier debugging and tracking of device-related issues.
Constructors
DeviceException(IBluetoothRemoteDevice, string, Exception?)
Initializes a new instance of the DeviceException class.
protected DeviceException(IBluetoothRemoteDevice device, string message = "Unknown Bluetooth device exception", Exception? innerException = null)
Parameters
deviceIBluetoothRemoteDeviceThe Bluetooth device associated with the exception.
messagestringA message that describes the error.
innerExceptionExceptionThe inner exception that caused the current exception, if any.
Properties
Device
Gets the Bluetooth device associated with the exception.
public IBluetoothRemoteDevice Device { get; }