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.
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 thestring
library, and build a data structureNativeErrno(int errno, String msg)
that should be instantiated from the native side.