Package org.apache.tomcat.jni
Class Error
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.tomcat.jni.Error
- All Implemented Interfaces:
- Serializable
Deprecated.
Unused. Will be removed in Tomcat 10.1
Error
- Author:
- Mladen Turk
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionDeprecated.Get the APR description of the exception.intgetError()Deprecated.Get the APR error code of the exception.static intDeprecated.Get the last platform socket error.static intosError()Deprecated.Get the last platform error.static Stringstrerror(int statcode) Deprecated.Return a human readable string describing the specified error.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Method Details- 
getErrorpublic int getError()Deprecated.Get the APR error code of the exception.- Returns:
- error of the Exception
 
- 
getDescriptionDeprecated.Get the APR description of the exception.- Returns:
- description of the Exception
 
- 
osErrorpublic static int osError()Deprecated.Get the last platform 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!
 
- 
netosErrorpublic static int netosError()Deprecated.Get the last platform socket error.- 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.
 
- 
strerrorDeprecated.Return a human readable string describing the specified error.- Parameters:
- statcode- The error code the get a string for.
- Returns:
- The error string.
 
 
-