|
JAFS API v2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openafs.jafs.ErrorTable
Static class for error code message management.
Simply translates all error codes returned by the AFS native library to literal string messages according to the defined locale.
Field Summary | |
static int |
BAD_ADDRESS
|
static int |
BAD_FILE
|
static int |
BAD_PASSWORD
|
static int |
BAD_USERNAME
|
static int |
BZACCESS
|
static int |
CELL_NOT_FOUND
|
static int |
CONNECTION_TIMED_OUT
|
static int |
DEVICE_BUSY
|
static int |
DIRECTORY_NOT_EMPTY
|
static int |
EXPIRED_PASSWORD
|
static int |
EXPIRED_SESSION
|
static int |
FILE_BUSY
|
static int |
FILE_EXISTS
|
static int |
FILE_OVERFLOW
|
static int |
FORCED_ABORT
|
static int |
GENERAL_FAILURE
|
static int |
ID_LOCKED
|
static int |
INVALID_ARG
|
static int |
INVALID_SESSION
|
static int |
IO_ERROR
|
static int |
IS_DIRECTORY
|
static int |
KANOAUTH
|
static int |
NAME_TOO_LONG
|
static int |
NO_DEVICE
|
static int |
NO_DEVICE_ADDRESS
|
static int |
NOT_DIRECTORY
|
static int |
NOT_FOUND
|
static int |
NOT_PERMITTED
|
static int |
NULL
|
static int |
OPERATION_ABORTED
|
static int |
OUT_OF_MEMORY
|
static int |
PERMISSION_DENIED
|
static int |
PRPERM
|
static int |
QUOTA_EXCEEDED
|
static int |
RXKADNOAUTH
|
static int |
SKEWED_CLOCK
|
static int |
SPECIAL_CASE
|
static int |
TRY_AGAIN
|
static int |
UNKNOWN
|
static int |
UNOACCESS
|
static int |
USER_DOES_NOT_EXIST
|
static int |
USERNAME_EXISTS
|
Constructor Summary | |
ErrorTable()
|
Method Summary | |
static String |
getMessage(int errno)
Returns a String message representing the error code (number) provided. |
static String |
getMessage(int errno,
Locale locale)
Returns a String message, respective to the provided locale, representing the error code (number) provided. |
static boolean |
isPermissionDenied(int errno)
Tests to identify if the return code is a "Permission Denied" error. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int UNKNOWN
public static final int SPECIAL_CASE
public static final int GENERAL_FAILURE
public static final int NULL
public static final int INVALID_SESSION
public static final int EXPIRED_SESSION
public static final int OPERATION_ABORTED
public static final int FORCED_ABORT
public static final int NOT_PERMITTED
public static final int NOT_FOUND
public static final int IO_ERROR
public static final int NO_DEVICE_ADDRESS
public static final int BAD_FILE
public static final int TRY_AGAIN
public static final int OUT_OF_MEMORY
public static final int PERMISSION_DENIED
public static final int BAD_ADDRESS
public static final int DEVICE_BUSY
public static final int FILE_EXISTS
public static final int NO_DEVICE
public static final int NOT_DIRECTORY
public static final int IS_DIRECTORY
public static final int INVALID_ARG
public static final int FILE_OVERFLOW
public static final int FILE_BUSY
public static final int NAME_TOO_LONG
public static final int DIRECTORY_NOT_EMPTY
public static final int CONNECTION_TIMED_OUT
public static final int QUOTA_EXCEEDED
public static final int BAD_USERNAME
public static final int BAD_PASSWORD
public static final int EXPIRED_PASSWORD
public static final int SKEWED_CLOCK
public static final int ID_LOCKED
public static final int CELL_NOT_FOUND
public static final int USERNAME_EXISTS
public static final int USER_DOES_NOT_EXIST
public static final int PRPERM
public static final int UNOACCESS
public static final int BZACCESS
public static final int KANOAUTH
public static final int RXKADNOAUTH
Constructor Detail |
public ErrorTable()
Method Detail |
public static boolean isPermissionDenied(int errno)
This method will qualify errno
against:
ErrorTable.PERMISSION_DENIED
ErrorTable.PRPERM
ErrorTable.UNOACCESS
ErrorTable.BZACCESS
ErrorTable.KANOAUTH
ErrorTable.RXKADNOAUTH
errno
- Error Code/Number
errno
is a "Permission Denied"
error.public static String getMessage(int errno)
If the error code provided is out of range of the library of defined
error codes, this method will return Error number [###] unknown
. If an exception is thrown, this method will return either:
Unknown error
, Special case error
, or
Invalid error code: ###
.
errno
- Error Code/Number
errno
.public static String getMessage(int errno, Locale locale)
If the error code provided is out of range of the library of defined
error codes, this method will return Error number [###] unknown
. If an exception is thrown, this method will return either:
Unknown error
, Special case error
, or
Invalid error code: ###
.
errno
- Error Code/Numberlocale
- Locale of to be used for translating the message.
errno
.
|
JAFS API v2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |