Interface SerialPortMessageListenerWithExceptions

All Superinterfaces:
EventListener, SerialPortDataListener, SerialPortMessageListener

public interface SerialPortMessageListenerWithExceptions extends SerialPortMessageListener
This interface must be implemented to enable delimited message reads using event-based serial port I/O with a custom Exception callback.

Note: Using this interface will negate any serial port read timeout settings since they make no sense in an asynchronous context.

See Also:
  • Method Details

    • catchException

      void catchException(Exception e)
      Must be overridden to handle any Java exceptions that occur asynchronously in this data listener.
      Parameters:
      e - An Exception object containing information about the exception that occurred.