Table of Contents

Class ServiceAlreadyExistsException

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

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

public class ServiceAlreadyExistsException : BroadcasterException, ISerializable
Inheritance
ServiceAlreadyExistsException
Implements
Inherited Members

Constructors

ServiceAlreadyExistsException(IBluetoothBroadcaster, Guid, IBluetoothLocalService, string?, Exception?)

Initializes a new instance of the ServiceAlreadyExistsException class.

public ServiceAlreadyExistsException(IBluetoothBroadcaster broadcaster, Guid serviceId, IBluetoothLocalService existingLocalService, string? message = null, Exception? innerException = null)

Parameters

broadcaster IBluetoothBroadcaster

The Bluetooth broadcaster associated with the exception.

serviceId Guid

The UUID of the service that already exists.

existingLocalService IBluetoothLocalService

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

ExistingLocalService

Gets the existing service that caused the exception.

public IBluetoothLocalService ExistingLocalService { get; }

Property Value

IBluetoothLocalService

ServiceId

Gets the UUID of the service that already exists.

public Guid ServiceId { get; }

Property Value

Guid