Table of Contents

Class DeviceUnexpectedDisconnectionException

Namespace
Bluetooth.Abstractions.Scanning.Exceptions
Assembly
Bluetooth.Abstractions.Scanning.dll

Represents an exception that occurs when a device disconnects unexpectedly.

public class DeviceUnexpectedDisconnectionException : DeviceException, ISerializable
Inheritance
DeviceUnexpectedDisconnectionException
Implements
Inherited Members

Constructors

DeviceUnexpectedDisconnectionException(IBluetoothRemoteDevice, string, Exception?)

Initializes a new instance of the DeviceUnexpectedDisconnectionException class.

public DeviceUnexpectedDisconnectionException(IBluetoothRemoteDevice device, string message = "Device has disconnected unexpectedly", 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