Table of Contents

Class AdapterException

Namespace
Bluetooth.Abstractions.Exceptions
Assembly
Bluetooth.Abstractions.dll

Represents an exception that occurs in Bluetooth adapter operations.

public abstract class AdapterException : BluetoothException, ISerializable
Inheritance
AdapterException
Implements
Inherited Members

Remarks

This exception provides information about the Bluetooth adapter associated with the error, allowing for easier debugging and tracking of adapter-related issues.

Constructors

AdapterException(IBluetoothAdapter, string, Exception?)

Initializes a new instance of the AdapterException class.

protected AdapterException(IBluetoothAdapter adapter, string message = "Unknown adapter exception", Exception? innerException = null)

Parameters

adapter IBluetoothAdapter

The Bluetooth adapter 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

Adapter

Gets the Bluetooth adapter associated with the exception.

public IBluetoothAdapter? Adapter { get; }

Property Value

IBluetoothAdapter