Class ServiceException
- Namespace
- Bluetooth.Abstractions.Broadcasting.Exceptions
- Assembly
- Bluetooth.Abstractions.Broadcasting.dll
Represents an exception that occurs in Bluetooth broadcaster operations.
public abstract class ServiceException : BluetoothBroadcastingException, ISerializable
- Inheritance
-
ServiceException
- Implements
- Derived
- Inherited Members
Constructors
ServiceException(IBluetoothLocalService, string, Exception?)
Initializes a new instance of the ServiceException class.
protected ServiceException(IBluetoothLocalService localService, string message = "Unknown broadcast service exception", Exception? innerException = null)
Parameters
localServiceIBluetoothLocalServiceThe Bluetooth broadcast service associated with the exception.
messagestringA message that describes the error.
innerExceptionExceptionThe inner exception that caused the current exception, if any.
Properties
LocalService
Gets the Bluetooth activity associated with the exception.
public IBluetoothLocalService LocalService { get; }