org.apache.tomcat.jni
public class Error extends Exception
Version: $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $
Method Summary | |
---|---|
String | getDescription()
Get the APR description of the exception.
|
int | getError()
Get the APR error code of the exception.
|
static int | netosError()
Get the last platform socket error. |
static int | osError()
Get the last platform error. |
static String | strerror(int statcode)
Return a human readable string describing the specified error. |
Returns: description of the Exception
Returns: error of the Exception
Returns: the last socket error, folded into apr_status_t, on all platforms This retrieves errno or calls a GetLastSocketError() style function, and folds it with APR_FROM_OS_ERROR.
Returns: apr_status_t the last platform error, folded into apr_status_t, on most platforms This retrieves errno, or calls a GetLastError() style function, and folds it with APR_FROM_OS_ERROR. Some platforms (such as OS2) have no such mechanism, so this call may be unsupported. Do NOT use this call for socket errors from socket, send, recv etc!
Parameters: statcode The error code the get a string for.
Returns: The error string.