Table of Contents

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

device IBluetoothRemoteDevice

The Bluetooth device associated with the exception.

advertisement IBluetoothAdvertisement

The advertisement that failed to parse.

message string

A message that describes the error.

innerException Exception

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

Properties

Advertisement

Gets the advertisement that failed to parse.

public IBluetoothAdvertisement? Advertisement { get; }

Property Value

IBluetoothAdvertisement

See Also