-
public class ThrowingIllegalOperationHandler extends IllegalOperationHandler
Implementation of IllegalOperationHandler. This class logs an error and returns BleIllegalOperationException if there was no match between possessed and requested properties.
-
-
Constructor Summary
Constructors Constructor Description ThrowingIllegalOperationHandler(IllegalOperationMessageCreator messageCreator)
-
Method Summary
Modifier and Type Method Description BleIllegalOperationExceptionhandleMismatchData(BluetoothGattCharacteristic characteristic, int neededProperties)This method logs an error and returns a BleIllegalOperationException. -
-
Constructor Detail
-
ThrowingIllegalOperationHandler
ThrowingIllegalOperationHandler(IllegalOperationMessageCreator messageCreator)
-
-
Method Detail
-
handleMismatchData
BleIllegalOperationException handleMismatchData(BluetoothGattCharacteristic characteristic, int neededProperties)
This method logs an error and returns a BleIllegalOperationException.
- Parameters:
characteristic- the characteristic upon which the operation was requestedneededProperties- bitmask of properties needed by the operation
-
-
-
-