Table of Contents

Class ScannerException

Namespace
Bluetooth.Abstractions.Scanning.Exceptions
Assembly
Bluetooth.Abstractions.Scanning.dll

Represents an exception that occurs in Bluetooth scanner operations.

public abstract class ScannerException : BluetoothScanningException, ISerializable
Inheritance
ScannerException
Implements
Derived
Inherited Members

Remarks

This exception provides information about the Bluetooth scanner associated with the error, allowing for easier debugging and tracking of scanner-related issues.

Constructors

ScannerException(IBluetoothScanner, string, Exception?)

Initializes a new instance of the ScannerException class.

protected ScannerException(IBluetoothScanner scanner, string message = "Unknown scanner exception", Exception? innerException = null)

Parameters

scanner IBluetoothScanner

The Bluetooth scanner 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

Scanner

Gets the Bluetooth scanner associated with the exception.

public IBluetoothScanner? Scanner { get; }

Property Value

IBluetoothScanner

See Also