Package org.xmldb.api.base
Class ErrorCodes
- java.lang.Object
-
- org.xmldb.api.base.ErrorCodes
-
public final class ErrorCodes extends java.lang.ObjectErrorCodes defines XML:DB error codes that can be used to set theerrorCodesattribute of anXMLDBException
-
-
Field Summary
Fields Modifier and Type Field Description static intCOLLECTION_CLOSEDSet when an operation is invoked against aCollectioninstance that has been closed.static intINSTANCE_NAME_ALREADY_REGISTEREDSet if theDatabaseinstance name being registered is already registered.static intINVALID_COLLECTIONSet if the Collection instance is in an invalid state.static intINVALID_DATABASESet if theDatabaseinstance being registered is invalid.static intINVALID_RESOURCESet if theResourceprovided to an operation is invalid.static intINVALID_URISet if the URI format is invalid.static intNO_SUCH_COLLECTIONSet if the requestedCollectioncould not be located.static intNO_SUCH_DATABASESet if aDatabaseinstance can not be located for the provided URI.static intNO_SUCH_RESOURCESet if the requestedResourcecould not be located.static intNO_SUCH_SERVICESet if the requestedServicecould not be located.static intNOT_IMPLEMENTEDSet if the API implementation does not support the operation being invoked.static intPERMISSION_DENIEDSet if access to the requestedCollectioncan not be granted due to the lack of proper credentials.static intUNKNOWN_ERRORSet when a more detailed error can not be determined.static intUNKNOWN_RESOURCE_TYPESet if the resource type requested is unknown to the API implementation.static intVENDOR_ERRORSet when a vendor specific error has occured.static intWRONG_CONTENT_TYPESet if the content of aResourceis set to a content type different then that for which theResourcewas intended to support.
-
-
-
Field Detail
-
UNKNOWN_ERROR
public static final int UNKNOWN_ERROR
Set when a more detailed error can not be determined.- See Also:
- Constant Field Values
-
VENDOR_ERROR
public static final int VENDOR_ERROR
Set when a vendor specific error has occured.- See Also:
- Constant Field Values
-
NOT_IMPLEMENTED
public static final int NOT_IMPLEMENTED
Set if the API implementation does not support the operation being invoked.- See Also:
- Constant Field Values
-
WRONG_CONTENT_TYPE
public static final int WRONG_CONTENT_TYPE
Set if the content of aResourceis set to a content type different then that for which theResourcewas intended to support.- See Also:
- Constant Field Values
-
PERMISSION_DENIED
public static final int PERMISSION_DENIED
Set if access to the requestedCollectioncan not be granted due to the lack of proper credentials.- See Also:
- Constant Field Values
-
INVALID_URI
public static final int INVALID_URI
Set if the URI format is invalid.- See Also:
- Constant Field Values
-
NO_SUCH_SERVICE
public static final int NO_SUCH_SERVICE
Set if the requestedServicecould not be located.- See Also:
- Constant Field Values
-
NO_SUCH_COLLECTION
public static final int NO_SUCH_COLLECTION
Set if the requestedCollectioncould not be located.- See Also:
- Constant Field Values
-
INVALID_COLLECTION
public static final int INVALID_COLLECTION
Set if the Collection instance is in an invalid state.- See Also:
- Constant Field Values
-
COLLECTION_CLOSED
public static final int COLLECTION_CLOSED
Set when an operation is invoked against aCollectioninstance that has been closed.- See Also:
- Constant Field Values
-
NO_SUCH_RESOURCE
public static final int NO_SUCH_RESOURCE
Set if the requestedResourcecould not be located.- See Also:
- Constant Field Values
-
INVALID_RESOURCE
public static final int INVALID_RESOURCE
Set if theResourceprovided to an operation is invalid.- See Also:
- Constant Field Values
-
UNKNOWN_RESOURCE_TYPE
public static final int UNKNOWN_RESOURCE_TYPE
Set if the resource type requested is unknown to the API implementation.- See Also:
- Constant Field Values
-
NO_SUCH_DATABASE
public static final int NO_SUCH_DATABASE
Set if aDatabaseinstance can not be located for the provided URI.- See Also:
- Constant Field Values
-
INVALID_DATABASE
public static final int INVALID_DATABASE
Set if theDatabaseinstance being registered is invalid.- See Also:
- Constant Field Values
-
INSTANCE_NAME_ALREADY_REGISTERED
public static final int INSTANCE_NAME_ALREADY_REGISTERED
Set if theDatabaseinstance name being registered is already registered.- See Also:
- Constant Field Values
-
-