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
deviceIBluetoothRemoteDeviceThe Bluetooth device associated with the exception.
messagestringA message that describes the error.
innerExceptionExceptionThe inner exception that caused the current exception, if any.