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