Class BroadcasterException
- Namespace
- Bluetooth.Abstractions.Broadcasting.Exceptions
- Assembly
- Bluetooth.Abstractions.Broadcasting.dll
Represents an exception that occurs in Bluetooth broadcaster operations.
public abstract class BroadcasterException : BluetoothBroadcastingException, ISerializable
- Inheritance
-
BroadcasterException
- Implements
- Derived
- Inherited Members
Remarks
This exception provides information about the Bluetooth broadcaster associated with the error, allowing for easier debugging and tracking of broadcaster-related issues.
Constructors
BroadcasterException(IBluetoothBroadcaster, string, Exception?)
Initializes a new instance of the BroadcasterException class.
protected BroadcasterException(IBluetoothBroadcaster broadcaster, string message = "Unknown broadcaster exception", Exception? innerException = null)
Parameters
broadcasterIBluetoothBroadcasterThe Bluetooth broadcaster associated with the exception.
messagestringA message that describes the error.
innerExceptionExceptionThe inner exception that caused the current exception, if any.
Properties
Broadcaster
Gets the Bluetooth broadcaster associated with the exception.
public IBluetoothBroadcaster Broadcaster { get; }