Table of Contents

Class CharacteristicUnexpectedWriteException

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

Represents an exception that occurs when an unexpected write operation happens.

public class CharacteristicUnexpectedWriteException : CharacteristicWriteException, ISerializable
Inheritance
CharacteristicUnexpectedWriteException
Implements
Inherited Members

Constructors

CharacteristicUnexpectedWriteException(IBluetoothRemoteCharacteristic, ReadOnlyMemory<byte>?, string, Exception?)

Initializes a new instance of the CharacteristicUnexpectedWriteException class.

public CharacteristicUnexpectedWriteException(IBluetoothRemoteCharacteristic remoteCharacteristic, ReadOnlyMemory<byte>? value = null, string message = "Unexpected characteristic write received", Exception? innerException = null)

Parameters

remoteCharacteristic IBluetoothRemoteCharacteristic

The Bluetooth characteristic associated with the exception.

value ReadOnlyMemory<byte>?

The value that was being written when the exception occurred.

message string

A message that describes the error.

innerException Exception

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

See Also