Table of Contents

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

device IBluetoothRemoteDevice

The Bluetooth device associated with the exception.

message string

A message that describes the error.

innerException Exception

The inner exception that caused the current exception, if any.

See Also