Table of Contents

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

device IBluetoothRemoteDevice

The Bluetooth device associated with the exception.

message string

A message that describes the error.

innerException Exception

The inner exception that caused the current exception, if any.

Properties

Device

Gets the Bluetooth device associated with the exception.

public IBluetoothRemoteDevice Device { get; }

Property Value

IBluetoothRemoteDevice

See Also