Table of Contents

Class CharacteristicAlreadyExistsException

Namespace
Bluetooth.Abstractions.Broadcasting.Exceptions
Assembly
Bluetooth.Abstractions.Broadcasting.dll

Represents an exception that occurs when attempting to add a characteristic that already exists to a Bluetooth broadcast service.

public class CharacteristicAlreadyExistsException : ServiceException, ISerializable
Inheritance
CharacteristicAlreadyExistsException
Implements
Inherited Members

Constructors

CharacteristicAlreadyExistsException(IBluetoothLocalService, Guid, IBluetoothLocalCharacteristic, string?, Exception?)

Initializes a new instance of the CharacteristicAlreadyExistsException class.

public CharacteristicAlreadyExistsException(IBluetoothLocalService localService, Guid characteristicId, IBluetoothLocalCharacteristic existingLocalCharacteristic, string? message = null, Exception? innerException = null)

Parameters

localService IBluetoothLocalService

The Bluetooth broadcast service associated with the exception.

characteristicId Guid

The UUID of the characteristic that already exists.

existingLocalCharacteristic IBluetoothLocalCharacteristic

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

CharacteristicId

Gets the UUID of the characteristic that already exists.

public Guid CharacteristicId { get; }

Property Value

Guid

ExistingLocalCharacteristic

Gets the existing characteristic that caused the exception.

public IBluetoothLocalCharacteristic ExistingLocalCharacteristic { get; }

Property Value

IBluetoothLocalCharacteristic

See Also