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
localServiceIBluetoothLocalServiceThe Bluetooth broadcast service associated with the exception.
characteristicIdGuidThe UUID of the characteristic that already exists.
existingLocalCharacteristicIBluetoothLocalCharacteristicThe existing characteristic that caused the exception.
messagestringA message that describes the error.
innerExceptionExceptionThe 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
ExistingLocalCharacteristic
Gets the existing characteristic that caused the exception.
public IBluetoothLocalCharacteristic ExistingLocalCharacteristic { get; }