Class PairingFailedException
- Namespace
- Bluetooth.Abstractions.Scanning.Exceptions
- Assembly
- Bluetooth.Abstractions.Scanning.dll
Represents an exception that occurs when pairing fails.
public class PairingFailedException : DeviceException, ISerializable
- Inheritance
-
PairingFailedException
- Implements
- Inherited Members
Constructors
PairingFailedException(IBluetoothRemoteDevice, string, Exception?)
Initializes a new instance of the PairingFailedException class.
public PairingFailedException(IBluetoothRemoteDevice device, string message = "Failed to pair with device", Exception? innerException = null)
Parameters
deviceIBluetoothRemoteDeviceThe Bluetooth device associated with the exception.
messagestringA message that describes the error.
innerExceptionExceptionThe inner exception that caused the current exception, if any.