Electrostat-Lab / Electrostatic-Sandbox

A high-performance infrastructure framework for distributed systems simulation based on the IEEE-1516 HLA Spec. and NASA DSES.
https://electrostat-lab.github.io/Electrostatic-Sandbox/
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

[Serial4j-Error-Handling] Replace the hard-coded errno messages on the Errno Enums with C native function calls #43

Open pavly-gerges opened 1 week ago

pavly-gerges commented 1 week ago

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.