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
targetTypeTypeThe target CLR type involved in the conversion failure.
rawBytesReadOnlyMemory<byte>The raw bytes involved in the conversion failure, if available.
messagestringThe message that describes the error.
innerExceptionExceptionThe 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
TargetType
Gets the target CLR type involved in the conversion failure.
public Type TargetType { get; }