Table of Contents

Class BluetoothPermissionException

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

Exception thrown when Bluetooth permission requests fail or are denied. Wraps platform-specific exceptions (COMException, SecurityException, etc.) to provide a unified API surface.

public class BluetoothPermissionException : BluetoothException, ISerializable
Inheritance
BluetoothPermissionException
Implements
Inherited Members

Constructors

BluetoothPermissionException()

Initializes a new instance of the BluetoothPermissionException class with a default message.

public BluetoothPermissionException()

BluetoothPermissionException(string)

Initializes a new instance of the BluetoothPermissionException class with the specified message.

public BluetoothPermissionException(string message)

Parameters

message string

The error message that explains the reason for the exception.

BluetoothPermissionException(string, Exception?)

Exception thrown when Bluetooth permission requests fail or are denied. Wraps platform-specific exceptions (COMException, SecurityException, etc.) to provide a unified API surface.

public BluetoothPermissionException(string message, Exception? innerException = null)

Parameters

message string

The error message that explains the reason for the exception.

innerException Exception

The platform-specific exception that is the cause of the current exception, or null if no inner exception is specified.