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
remoteCharacteristicIBluetoothRemoteCharacteristicThe Bluetooth characteristic associated with the exception.
messagestringA message that describes the error.
innerExceptionExceptionThe inner exception that caused the current exception, if any.
Properties
RemoteCharacteristic
Gets the Bluetooth characteristic associated with the exception.
public IBluetoothRemoteCharacteristic RemoteCharacteristic { get; }