FileDocCategorySizeDatePackage
Error.javaAPI DocApache Tomcat 6.0.142961Fri Jul 20 04:20:32 BST 2007org.apache.tomcat.jni

Error

public class Error extends Exception
Error
author
Mladen Turk
version
$Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $

Fields Summary
private int
error
APR error type.
private String
description
A description of the problem.
Constructors Summary
private Error(int error, String description)
Construct an APRException.

param
error one of the value in Error
param
description error message

        super(description);
        this.error = error;
        this.description = description;
    
Methods Summary
public java.lang.StringgetDescription()
Get the APR description of the exception.

return
description of the Exception

        return description;
    
public intgetError()
Get the APR error code of the exception.

return
error of the Exception

        return error;
    
public static native intnetosError()
Get the last platform socket error.

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

public static native intosError()
Get the last platform error.

return
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!

public static native java.lang.Stringstrerror(int statcode)
Return a human readable string describing the specified error.

param
statcode The error code the get a string for.
return
The error string.