Table of Contents

Class CharacteristicException

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

Represents an exception that occurs in Bluetooth characteristic operations.

public abstract class CharacteristicException : BluetoothScanningException, ISerializable
Inheritance
CharacteristicException
Implements
Derived
Inherited Members

Remarks

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

Constructors

CharacteristicException(IBluetoothRemoteCharacteristic, string, Exception?)

Initializes a new instance of the CharacteristicException class.

protected CharacteristicException(IBluetoothRemoteCharacteristic remoteCharacteristic, string message = "Unknown Bluetooth characteristic exception", Exception? innerException = null)

Parameters

remoteCharacteristic IBluetoothRemoteCharacteristic

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

RemoteCharacteristic

Gets the Bluetooth characteristic associated with the exception.

public IBluetoothRemoteCharacteristic RemoteCharacteristic { get; }

Property Value

IBluetoothRemoteCharacteristic

See Also