Class CharacteristicUnexpectedReadException
- Namespace
- Bluetooth.Abstractions.Scanning.Exceptions
- Assembly
- Bluetooth.Abstractions.Scanning.dll
Represents an exception that occurs when an unexpected read operation happens.
public class CharacteristicUnexpectedReadException : CharacteristicReadException, ISerializable
- Inheritance
-
CharacteristicUnexpectedReadException
- Implements
- Inherited Members
Constructors
CharacteristicUnexpectedReadException(IBluetoothRemoteCharacteristic, string, Exception?)
Initializes a new instance of the CharacteristicUnexpectedReadException class.
public CharacteristicUnexpectedReadException(IBluetoothRemoteCharacteristic remoteCharacteristic, string message = "Unexpected characteristic read received", Exception? innerException = null)
Parameters
remoteCharacteristicIBluetoothRemoteCharacteristicThe Bluetooth characteristic associated with the exception.
messagestringA message that describes the error.
innerExceptionExceptionThe inner exception that caused the current exception, if any.