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
adapterIBluetoothAdapterThe Bluetooth adapter associated with the exception.
messagestringA message that describes the error.
innerExceptionExceptionThe inner exception that caused the current exception, if any.
Properties
Adapter
Gets the Bluetooth adapter associated with the exception.
public IBluetoothAdapter? Adapter { get; }