Package org.xmldb.api.base
Class ErrorCodes
java.lang.Object
org.xmldb.api.base.ErrorCodes
ErrorCodes defines XML:DB error codes that can be used to set the
errorCodes attribute of an XMLDBException-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSet when an operation is invoked against aCollectioninstance that has been closed.static final intSet if the Collection instance is in an invalid state.static final intSet if theDatabaseinstance being registered is invalid.static final intSet if theResourceprovided to an operation is invalid.static final intSet if the URI format is invalid.static final intSet if the requestedCollectioncould not be located.static final intSet if aDatabaseinstance can not be located for the provided URI.static final intSet if the requestedResourcecould not be located.static final intSet if the requestedServicecould not be located.static final intSet if the API implementation does not support the operation being invoked.static final intSet if access to the requestedCollectioncan not be granted due to the lack of proper credentials.static final intSet when a more detailed error can not be determined.static final intSet if the resource type requested is unknown to the API implementation.static final intSet when a vendor specific error has occured.static final intSet if the content of aResourceis set to a content type different then that for which theResourcewas intended to support. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
UNKNOWN_ERROR
public static final int UNKNOWN_ERRORSet when a more detailed error can not be determined.- See Also:
-
VENDOR_ERROR
public static final int VENDOR_ERRORSet when a vendor specific error has occured.- See Also:
-
NOT_IMPLEMENTED
public static final int NOT_IMPLEMENTEDSet if the API implementation does not support the operation being invoked.- See Also:
-
WRONG_CONTENT_TYPE
public static final int WRONG_CONTENT_TYPESet if the content of aResourceis set to a content type different then that for which theResourcewas intended to support.- See Also:
-
PERMISSION_DENIED
public static final int PERMISSION_DENIEDSet if access to the requestedCollectioncan not be granted due to the lack of proper credentials.- See Also:
-
INVALID_URI
public static final int INVALID_URISet if the URI format is invalid.- See Also:
-
NO_SUCH_SERVICE
public static final int NO_SUCH_SERVICESet if the requestedServicecould not be located.- See Also:
-
NO_SUCH_COLLECTION
public static final int NO_SUCH_COLLECTIONSet if the requestedCollectioncould not be located.- See Also:
-
INVALID_COLLECTION
public static final int INVALID_COLLECTIONSet if the Collection instance is in an invalid state.- See Also:
-
COLLECTION_CLOSED
public static final int COLLECTION_CLOSEDSet when an operation is invoked against aCollectioninstance that has been closed.- See Also:
-
NO_SUCH_RESOURCE
public static final int NO_SUCH_RESOURCESet if the requestedResourcecould not be located.- See Also:
-
INVALID_RESOURCE
public static final int INVALID_RESOURCESet if theResourceprovided to an operation is invalid.- See Also:
-
UNKNOWN_RESOURCE_TYPE
public static final int UNKNOWN_RESOURCE_TYPESet if the resource type requested is unknown to the API implementation.- See Also:
-
NO_SUCH_DATABASE
public static final int NO_SUCH_DATABASESet if aDatabaseinstance can not be located for the provided URI.- See Also:
-
INVALID_DATABASE
public static final int INVALID_DATABASESet if theDatabaseinstance being registered is invalid.- See Also:
-
-
Constructor Details
-
ErrorCodes
public ErrorCodes()
-