Sagewire Logo

strerror equivalent JAVA

2 Message(s) by 2 Author(s) originally posted in java api


From: jas_2_cool Date:   Thursday, June 17, 2004
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


From: =?UTF-8?b?TMSByrtpZSBUZWNoaWU=?= Date:   Thursday, June 24, 2004
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



Next Message: JAVA Help - Servlet


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 ...


Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional