Table of Contents

Class BroadcasterIsAlreadyStoppedException

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

Represents an exception that occurs when a Bluetooth broadcaster is already stopped.

public class BroadcasterIsAlreadyStoppedException : BroadcasterFailedToStopException, ISerializable
Inheritance
BroadcasterIsAlreadyStoppedException
Implements
Inherited Members

Constructors

BroadcasterIsAlreadyStoppedException(IBluetoothBroadcaster, string, Exception?)

Initializes a new instance of the BroadcasterIsAlreadyStoppedException class.

public BroadcasterIsAlreadyStoppedException(IBluetoothBroadcaster broadcaster, string message = "Broadcaster is already stopped", Exception? innerException = null)

Parameters

broadcaster IBluetoothBroadcaster

The Bluetooth broadcaster associated with the exception.

message string

A message that describes the error.

innerException Exception

The inner exception that caused the current exception, if any.

Methods

ThrowIfIsStopped(IBluetoothBroadcaster)

Throws an BroadcasterIsAlreadyStoppedException if the Bluetooth broadcaster is already stopped.

public static void ThrowIfIsStopped(IBluetoothBroadcaster broadcaster)

Parameters

broadcaster IBluetoothBroadcaster

The Bluetooth broadcaster to check.

Exceptions

ArgumentNullException

Thrown when broadcaster is null.

BroadcasterIsAlreadyStoppedException

Thrown when the broadcaster is already stopped.

See Also