LOGGER.info("Open port with name: {}", portName); if (portName == null || portName.trim().isEmpty()) { throw new PortNotFoundException("");
LOGGER.warn("Selected port for interface bidib is not available.", ex); throw new RuntimeException("Selected port for interface bidib is not available: " + ex.getMessage());
throw new PortNotFoundException("Call initialize on delegateBidib failed."); throw new PortNotFoundException("No simulation configuration available.");
public int execute() { int result = 20; try { openPort(getPortName(), null); BidibNode rootNode = getBidib().getRootNode(); int count = rootNode.getNodeCount(); System.out.println("Number of nodes: " + count); // NOSONAR for (int index = 1; index <= count; index++) { Node node = rootNode.getNextNode(); System.out.println("Found node: " + node); // NOSONAR } result = 0; releaseBidib(); } catch (PortNotFoundException ex) { System.err.println("The provided port was not found: " + ex.getMessage() // NOSONAR + ". Verify that the BiDiB device is connected."); } catch (Exception ex) { System.err.println("Get list of nodes failed: " + ex); // NOSONAR } return result; } }
throw new PortNotFoundException("No portName to open provided!"); throw new PortNotFoundException(portName);
System.err.println("The provided port was not found: " + ex.getMessage() // NOSONAR + ". Verify that the BiDiB device is connected.");
throw new PortNotFoundException(portName);
System.err.println("The provided port was not found: " + ex.getMessage() // NOSONAR + ". Verify that the BiDiB device is connected.");
System.err.println("The provided port was not found: " + ex.getMessage() // NOSONAR + ". Verify that the BiDiB device is connected.");
System.err.println("The provided port was not found: " + ex.getMessage() // NOSONAR + ". Verify that the BiDiB device is connected.");
System.err.println("The provided port was not found: " + ex.getMessage() // NOSONAR + ". Verify that the BiDiB device is connected.");
System.err.println("The provided port was not found: " + ex.getMessage() // NOSONAR + ". Verify that the BiDiB device is connected.");
System.err.println("The provided port was not found: " + ex.getMessage() // NOSONAR + ". Verify that the BiDiB device is connected.");
"The provided port was not found: " + ex.getMessage() + ". Verify that the BiDiB device is connected.", ex);
System.err.println("The provided port was not found: " + ex.getMessage() // NOSONAR + ". Verify that the BiDiB device is connected.");
System.err.println("The provided port was not found: " + ex.getMessage() // NOSONAR + ". Verify that the BiDiB device is connected.");