Table of Contents

Class CharacteristicCodecException

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

Exception thrown when characteristic value encoding or decoding fails.

public class CharacteristicCodecException : CharacteristicAccessorException, ISerializable
Inheritance
CharacteristicCodecException
Implements
Inherited Members

Constructors

CharacteristicCodecException(Type, ReadOnlyMemory<byte>, string, Exception?)

Initializes a new instance of the CharacteristicCodecException class.

public CharacteristicCodecException(Type targetType, ReadOnlyMemory<byte> rawBytes, string message, Exception? innerException = null)

Parameters

targetType Type

The target CLR type involved in the conversion failure.

rawBytes ReadOnlyMemory<byte>

The raw bytes involved in the conversion failure, if available.

message string

The message that describes the error.

innerException Exception

The inner exception that caused this exception, if any.

Properties

RawBytes

Gets the raw bytes involved in the conversion failure.

public ReadOnlyMemory<byte> RawBytes { get; }

Property Value

ReadOnlyMemory<byte>

TargetType

Gets the target CLR type involved in the conversion failure.

public Type TargetType { get; }

Property Value

Type