Class CharacteristicException
- Namespace
- Bluetooth.Abstractions.Broadcasting.Exceptions
- Assembly
- Bluetooth.Abstractions.Broadcasting.dll
Represents an exception that occurs in Bluetooth broadcast characteristic operations.
public abstract class CharacteristicException : BluetoothBroadcastingException, ISerializable
- Inheritance
-
CharacteristicException
- Implements
- Derived
- Inherited Members
Remarks
This exception provides information about the Bluetooth broadcast characteristic associated with the error, allowing for easier debugging and tracking of characteristic-related issues.
Constructors
CharacteristicException(IBluetoothLocalCharacteristic, string?, Exception?)
Initializes a new instance of the CharacteristicException class.
protected CharacteristicException(IBluetoothLocalCharacteristic broadcastLocalCharacteristic, string? message = null, Exception? innerException = null)
Parameters
broadcastLocalCharacteristicIBluetoothLocalCharacteristicThe Bluetooth broadcast characteristic associated with the exception.
messagestringA message that describes the error.
innerExceptionExceptionThe inner exception that caused the current exception, if any.
Properties
BroadcastLocalCharacteristic
Gets the Bluetooth broadcast characteristic associated with the exception.
public IBluetoothLocalCharacteristic BroadcastLocalCharacteristic { get; }