Fazecast / jSerialComm

Platform-independent serial port access for Java
GNU Lesser General Public License v3.0
1.34k stars 287 forks source link

Need Exception handling in SerialPortMessageListener #257

Closed Moleesh closed 4 years ago

Moleesh commented 4 years ago

can u extrend SerialPortMessageListener with SerialPortDataListenerWithExceptions ?

Moleesh commented 4 years ago
interface SerialPortMessageListenerWithExceptions extends SerialPortDataListenerWithExceptions, SerialPortMessageListener {
}

This the current solution i am using.

hedgecrw commented 4 years ago

No problem! I went ahead and checked in this new class (SerialPortMessageListenerWithExceptions) which is exactly the same as SerialPortMessageListener except with a new public abstract void catchException(Exception e) function to override. Please test with the following library version: https://www.dropbox.com/s/crtm383zsriqgfe/jSerialComm-2.5.4.jar?dl=0

Moleesh commented 4 years ago

Thank you so much

Moleesh commented 4 years ago

Can you update the maven repo ?

hedgecrw commented 4 years ago

Released in the current library version v2.6.0