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
scannerIBluetoothScannerThe Bluetooth scanner associated with the exception.
messagestringA message that describes the error.
innerExceptionExceptionThe inner exception that caused the current exception, if any.
Properties
Scanner
Gets the Bluetooth scanner associated with the exception.
public IBluetoothScanner? Scanner { get; }