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
remoteCharacteristicIBluetoothRemoteCharacteristicThe Bluetooth characteristic associated with the exception.
valueReadOnlyMemory<byte>?The value that was being written when the exception occurred.
messagestringA message that describes the error.
innerExceptionExceptionThe inner exception that caused the current exception, if any.