Hi,
Is there an equivalent of the C function:
char* strerror (int errno); (defined in
string .h)
in JAVA? I need to obtain the corresponding
error string for the error
code returned by a process, in my JAVA code.
Thanks,
Jaskaran
wrote in message:
Hi,
Is there an equivalent of the C function:
char* strerror (int errno); (defined in string.h)
in JAVA? I need to obtain the corresponding error string for the error
code returned by a process, in my JAVA code.
Thanks,
Jaskaran
In JAVA, Exceptions and Errors are the
standard way of indicating that
something went wrong (as opposed to returning a status int). Both
Exceptions and Errors have methods getMessage() and getLocalizedMessage().
If you are just starting with JAVA, you may find comp.lang.JAVA.help a
more suitable NG.
HTH,
La'ie Techie
Blogs related to strerror equivalent JAVA
comp.sys.hp.hpux faq
8. miscellaneous 8.1 how can i find the hp-ux
equivalent for a given solaris/aix/etc.. command?
... error and clean up. strcpy(result,
strerror(errno)); close(fildes_in[0]);
... and the
java[tm] sdk; larger 3rd-party apps (ie - emacs,
...
comp.sys.hp.hpux FAQ
MISCELLANEOUS 8.1 How can I find the HP-UX
equivalent for a given
... return an error and clean up. strcpy(result,
strerror(errno)); close(fildes_in[0]);
... Java[TM], NIS[TM], and Solaris[TM] are trademarks of Sun Microsystems, Inc.,
...
Linux From Scratch Version 6.0 Gerard Beekmans Lin...
when it finds a
Java compiler on the host. An experimental patch to disable
... obstack,
strerror, strtol, and strtoul libbfd The Binary File Descriptor library
... If an
equivalent file exists in the home directory, it may override the
...