Table of Contents

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

localCharacteristic IBluetoothLocalCharacteristic

The Bluetooth broadcast characteristic associated with the exception.

descriptorId Guid

The UUID of the descriptor that already exists.

existingLocalDescriptor IBluetoothLocalDescriptor

The existing descriptor that caused the exception.

message string

A message that describes the error.

innerException Exception

The 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

Guid

ExistingLocalDescriptor

Gets the existing descriptor that caused the exception.

public IBluetoothLocalDescriptor ExistingLocalDescriptor { get; }

Property Value

IBluetoothLocalDescriptor

See Also