[Serial4j-Error-Handling] Replace the hard-coded errno messages on the Errno Enums with C native function calls
Closed this issue · 0 comments
pavly-gerges commented
The Errno.java
enum constants uses hard-coded string literals for error messages when instantiating an exception. It's by far better to use the utility char * strerror (int errnum) from the string
library, and build a data structure NativeErrno(int errno, String msg)
that should be instantiated from the native side.