- Mladen Turk
- $Revision: 515 $, $Date: 2008-03-17 22:02:23 +0100 (Mon, 17 Mar 2008) $
APR_OS_START_ERROR is where the APR specific error values start.
APR_OS_ERRSPACE_SIZE is the maximum number of errors you can fit
into one of the error/status ranges below -- except for
APR_OS_START_USERERR, which see.
APR_OS_START_STATUS is where the APR specific status codes start.
APR_OS_START_USERERR are reserved for applications that use APR that
layer their own error codes along with APR's. Note that the
error immediately following this one is set ten times farther
away than usual, so that users of apr have a lot of room in
which to declare custom error codes.
APR_OS_START_USEERR is obsolete, defined for compatibility only.
Use APR_OS_START_USERERR instead.
APR_OS_START_CANONERR is where APR versions of errno values are defined
on systems which don't have the corresponding errno.
APR_OS_START_EAIERR folds EAI_ error codes from getaddrinfo() into
APR_OS_START_SYSERR folds platform-specific system error values into
APR Error Values
APR ERROR VALUES
APR_ENOSTAT APR was unable to perform a stat on the file
APR_ENOPOOL APR was not provided a pool with which to allocate memory
APR_EBADDATE APR was given an invalid date
APR_EINVALSOCK APR was given an invalid socket
APR_ENOPROC APR was not given a process structure
APR_ENOTIME APR was not given a time structure
APR_ENODIR APR was not given a directory structure
APR_ENOLOCK APR was not given a lock structure
APR_ENOPOLL APR was not given a poll structure
APR_ENOSOCKET APR was not given a socket
APR_ENOTHREAD APR was not given a thread structure
APR_ENOTHDKEY APR was not given a thread key structure
APR_ENOSHMAVAIL There is no more shared memory available
APR_EDSOOPEN APR was unable to open the dso object. For more
information call apr_dso_error().
APR_EGENERAL General failure (specific information not available)
APR_EBADIP The specified IP address is invalid
APR_EBADMASK The specified netmask is invalid
APR_ESYMNOTFOUND Could not find the requested symbol
APR Status Values
APR STATUS VALUES
APR_INCHILD Program is currently executing in the child
APR_INPARENT Program is currently executing in the parent
APR_DETACH The thread is detached
APR_NOTDETACH The thread is not detached
APR_CHILD_DONE The child has finished executing
APR_CHILD_NOTDONE The child has not finished executing
APR_TIMEUP The operation did not finish before the timeout
APR_INCOMPLETE The operation was incomplete although some processing
was performed and the results are partially valid
APR_BADCH Getopt found an option not in the option string
APR_BADARG Getopt found an option that is missing an argument
and an argument was specified in the option string
APR_EOF APR has encountered the end of the file
APR_NOTFOUND APR was unable to find the socket in the poll structure
APR_ANONYMOUS APR is using anonymous shared memory
APR_FILEBASED APR is using a file name as the key to the shared memory
APR_KEYBASED APR is using a shared key as the key to the shared memory
APR_EINIT Ininitalizer value. If no option has been found, but
the status variable requires a value, this should be used
APR_ENOTIMPL The APR function has not been implemented on this
platform, either because nobody has gotten to it yet,
or the function is impossible on this platform.
APR_EMISMATCH Two passwords do not match.
APR_EBUSY The given lock was busy.
private static native boolean is(int err, int idx);
APR_STATUS_IS Status Value Tests
For any particular error condition, more than one of these tests
may match. This is because platform-specific error codes may not
always match the semantics of the POSIX codes these tests (and the
corresponding APR error codes) are named after. A notable example
are the APR_STATUS_IS_ENOENT and APR_STATUS_IS_ENOTDIR tests on
Win32 platforms. The programmer should always be aware of this and
adjust the order of the tests accordingly.