Table of Contents

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

remoteService IBluetoothRemoteService

The Bluetooth service associated with the exception.

message string

A message that describes the error.

innerException Exception

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

Properties

RemoteService

Gets the Bluetooth service associated with the exception.

public IBluetoothRemoteService RemoteService { get; }

Property Value

IBluetoothRemoteService

See Also