Table of Contents

Class CharacteristicWriteException

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

Represents an exception that occurs during Bluetooth characteristic write operations.

public class CharacteristicWriteException : CharacteristicException, ISerializable
Inheritance
CharacteristicWriteException
Implements
Derived
Inherited Members

Constructors

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

Initializes a new instance of the CharacteristicWriteException class.

public CharacteristicWriteException(IBluetoothRemoteCharacteristic remoteCharacteristic, ReadOnlyMemory<byte>? value = null, string message = "Unknown Bluetooth characteristic write exception", 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.

Properties

Value

Gets a read-only collection of the value that was being written when the exception occurred.

public ReadOnlyMemory<byte>? Value { get; }

Property Value

ReadOnlyMemory<byte>?

See Also