|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xindice.core.FaultCodes
FaultCodes defines the Xindice specific fault codes and associated error messages.
Method Summary | |
static org.xmldb.api.base.XMLDBException |
createXMLDBException(Exception e)
createXMLDBException creates an XMLDBException instance based on the specified Exception. |
static org.xmldb.api.base.XMLDBException |
createXMLDBException(int errorCode,
int faultCode,
String message,
Exception e)
Creates an XMLDBException instance based on the specified fault code, message, and Exception. |
static org.xmldb.api.base.XMLDBException |
createXMLDBException(int faultCode,
String message,
Exception e)
|
static org.xmldb.api.base.XMLDBException |
createXMLDBException(String message,
Exception e)
createXMLDBException creates an XMLDBException instance based on the specified Exception. |
static int |
getErrorCode(int faultCode)
getErrorCode returns the associated XML:DB error code for the specified Xindice fault code |
static int |
getFaultCode(Exception e)
getFaultCode examines the provided exception to determine the fault code that is associated with it. |
static int |
getFaultCodeSeries(Exception e)
getFaultCodeSeries examines the provided exception to determine the fault code series that is associated with it. |
static int |
getFaultCodeType(Exception e)
getFaultCodeType examines the provided exception to determine the general fault code that is associated with it. |
static String |
getFaultMessage(Exception e)
getFaultMessage examines the provided exception to determine the fault message that is associated with it. |
static String |
getMessage(int code)
getMessage returns a textual form for the specified fault code. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int MAX_CODE
public static final int GEN
public static final int OBJ
public static final int COL
public static final int IDX
public static final int TRX
public static final int DBE
public static final int QRY
public static final int SEC
public static final int URI
public static final int JAVA
public static final int GEN_UNKNOWN
public static final int GEN_GENERAL_ERROR
public static final int GEN_CRITICAL_ERROR
public static final int GEN_FATAL_ERROR
public static final int COL_COLLECTION_NOT_FOUND
public static final int COL_DOCUMENT_NOT_FOUND
public static final int COL_DUPLICATE_COLLECTION
public static final int COL_NULL_RESULT
public static final int COL_NO_FILER
public static final int COL_NO_INDEXMANAGER
public static final int COL_DOCUMENT_MALFORMED
public static final int COL_CANNOT_STORE
public static final int COL_CANNOT_RETRIEVE
public static final int COL_COLLECTION_READ_ONLY
public static final int COL_COLLECTION_CLOSED
public static final int COL_DUPLICATE_RESOURCE
public static final int COL_CANNOT_CREATE
public static final int COL_CANNOT_DROP
public static final int COL_INVALID_RESULT
public static final int IDX_VALUE_NOT_FOUND
public static final int IDX_INDEX_NOT_FOUND
public static final int IDX_MATCHES_NOT_FOUND
public static final int IDX_DUPLICATE_INDEX
public static final int IDX_NOT_SUPPORTED
public static final int IDX_STYLE_NOT_FOUND
public static final int IDX_CORRUPTED
public static final int IDX_CANNOT_CREATE
public static final int TRX_DOC_LOCKED
public static final int TRX_NO_CONTEXT
public static final int TRX_NOT_ACTIVE
public static final int TRX_NOT_SUPPORTED
public static final int DBE_NO_PARENT
public static final int DBE_CANNOT_DROP
public static final int DBE_CANNOT_CREATE
public static final int DBE_CANNOT_READ
public static final int QRY_NULL_RESULT
public static final int QRY_COMPILATION_ERROR
public static final int QRY_PROCESSING_ERROR
public static final int QRY_NOT_SUPPORTED
public static final int QRY_STYLE_NOT_FOUND
public static final int SEC_INVALID_USER
public static final int SEC_INVALID_GROUP
public static final int SEC_INVALID_ACCESS
public static final int SEC_INVALID_CREDENTIALS
public static final int URI_EMPTY
public static final int URI_NULL
public static final int URI_PARSE_ERROR
public static final int JAVA_RUNTIME_ERROR
Method Detail |
public static int getErrorCode(int faultCode)
faultCode
- The Xindice fault code
public static String getMessage(int code)
code
- The Fault Code
public static org.xmldb.api.base.XMLDBException createXMLDBException(Exception e)
e
- The Exception to use
public static org.xmldb.api.base.XMLDBException createXMLDBException(String message, Exception e)
e
- The Exception to usemessage
- The Message to use
public static org.xmldb.api.base.XMLDBException createXMLDBException(int faultCode, String message, Exception e)
public static org.xmldb.api.base.XMLDBException createXMLDBException(int errorCode, int faultCode, String message, Exception e)
errorCode
- error code for the XMLDBExceptionfaultCode
- the fault code for the created exceptionmessage
- message for the XMLDBException, or null to use message from ee
- The Exception to use
public static int getFaultCodeType(Exception e)
e
- The Exception to examine
public static int getFaultCodeSeries(Exception e)
e
- The Exception to examine
public static int getFaultCode(Exception e)
e
- The Exception to examine
public static String getFaultMessage(Exception e)
e
- The Exception to examine
|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |