Class ScannerFailedToStartException
- Namespace
- Bluetooth.Abstractions.Scanning.Exceptions
- Assembly
- Bluetooth.Abstractions.Scanning.dll
Represents an exception that occurs when a Bluetooth scanner fails to start.
public class ScannerFailedToStartException : ScannerException, ISerializable
- Inheritance
-
ScannerFailedToStartException
- Implements
- Derived
- Inherited Members
Constructors
ScannerFailedToStartException(IBluetoothScanner, string, Exception?)
Initializes a new instance of the ScannerFailedToStartException class.
public ScannerFailedToStartException(IBluetoothScanner scanner, string message = "Failed to start scanner", 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.