Class DescriptorAlreadyExistsException
- Namespace
- Bluetooth.Abstractions.Broadcasting.Exceptions
- Assembly
- Bluetooth.Abstractions.Broadcasting.dll
Represents an exception that occurs when attempting to add a descriptor that already exists to a Bluetooth broadcast characteristic.
public class DescriptorAlreadyExistsException : CharacteristicException, ISerializable
- Inheritance
-
DescriptorAlreadyExistsException
- Implements
- Inherited Members
Constructors
DescriptorAlreadyExistsException(IBluetoothLocalCharacteristic, Guid, IBluetoothLocalDescriptor, string?, Exception?)
Initializes a new instance of the DescriptorAlreadyExistsException class.
public DescriptorAlreadyExistsException(IBluetoothLocalCharacteristic localCharacteristic, Guid descriptorId, IBluetoothLocalDescriptor existingLocalDescriptor, string? message = null, Exception? innerException = null)
Parameters
localCharacteristicIBluetoothLocalCharacteristicThe Bluetooth broadcast characteristic associated with the exception.
descriptorIdGuidThe UUID of the descriptor that already exists.
existingLocalDescriptorIBluetoothLocalDescriptorThe existing descriptor that caused the exception.
messagestringA message that describes the error.
innerExceptionExceptionThe inner exception that caused the current exception, if any.
Properties
DescriptorId
Gets the UUID of the descriptor that already exists.
public Guid DescriptorId { get; }
Property Value
ExistingLocalDescriptor
Gets the existing descriptor that caused the exception.
public IBluetoothLocalDescriptor ExistingLocalDescriptor { get; }