use of org.openhab.binding.tinkerforge.internal.tools.Tools.LinePositionParseException in project openhab1-addons by openhab.
the class MBrickletOLED128x64Impl method write.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated NOT
*/
@Override
public void write(String linePositionText) {
try {
LinePositionText linePostion = Tools.parseLinePostion(linePositionText, positionPrefix, positionSuffix, 1, 2, maxLine, maxColumn);
tinkerforgeDevice.writeLine(linePostion.getLine(), linePostion.getPosition(), linePostion.getText());
} catch (LinePositionParseException e) {
logger.error("faulty input text", e);
} catch (TimeoutException e) {
TinkerforgeErrorHandler.handleError(this, TinkerforgeErrorHandler.TF_TIMEOUT_EXCEPTION, e);
} catch (NotConnectedException e) {
TinkerforgeErrorHandler.handleError(this, TinkerforgeErrorHandler.TF_NOT_CONNECTION_EXCEPTION, e);
}
}
use of org.openhab.binding.tinkerforge.internal.tools.Tools.LinePositionParseException in project openhab1-addons by openhab.
the class MBrickletOLE64x48Impl method write.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated NOT
*/
@Override
public void write(String linePositionText) {
try {
LinePositionText linePostion = Tools.parseLinePostion(linePositionText, positionPrefix, positionSuffix, 1, 2, maxLine, maxColumn);
tinkerforgeDevice.writeLine(linePostion.getLine(), linePostion.getPosition(), linePostion.getText());
} catch (LinePositionParseException e) {
logger.error("faulty input text", e);
} catch (TimeoutException e) {
TinkerforgeErrorHandler.handleError(this, TinkerforgeErrorHandler.TF_TIMEOUT_EXCEPTION, e);
} catch (NotConnectedException e) {
TinkerforgeErrorHandler.handleError(this, TinkerforgeErrorHandler.TF_NOT_CONNECTION_EXCEPTION, e);
}
}
Aggregations