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