Class DeviceAdvertisementParsingException
- Namespace
- Bluetooth.Abstractions.Scanning.Exceptions
- Assembly
- Bluetooth.Abstractions.Scanning.dll
Represents an exception that occurs when parsing a Bluetooth advertisement fails.
public class DeviceAdvertisementParsingException : DeviceException, ISerializable
- Inheritance
-
DeviceAdvertisementParsingException
- Implements
- Inherited Members
Constructors
DeviceAdvertisementParsingException(IBluetoothRemoteDevice, IBluetoothAdvertisement, string, Exception?)
Initializes a new instance of the DeviceAdvertisementParsingException class.
public DeviceAdvertisementParsingException(IBluetoothRemoteDevice device, IBluetoothAdvertisement advertisement, string message = "Failed to parse advertisement", Exception? innerException = null)
Parameters
deviceIBluetoothRemoteDeviceThe Bluetooth device associated with the exception.
advertisementIBluetoothAdvertisementThe advertisement that failed to parse.
messagestringA message that describes the error.
innerExceptionExceptionThe inner exception that caused the current exception, if any.
Properties
Advertisement
Gets the advertisement that failed to parse.
public IBluetoothAdvertisement? Advertisement { get; }