org.xmldb.api.base

Class ErrorCodes

public class ErrorCodes extends Object

ErrorCodes defines XML:DB error codes that can be used to set the errorCodes attribute of an XMLDBException
Field Summary
static intCOLLECTION_CLOSED
Set when an operation is invoked against a Collection instance that has been closed.
static intINVALID_COLLECTION
Set if the Collection instance is in an invalid state.
static intINVALID_DATABASE
Set if the Database instance being registered is invalid.
static intINVALID_RESOURCE
Set if the Resource provided to an operation is invalid.
static intINVALID_URI
Set if the URI format is invalid.
static intNOT_IMPLEMENTED
Set if the API implementation does not support the operation being invoked.
static intNO_SUCH_COLLECTION
Set if the requested Collection could not be located.
static intNO_SUCH_DATABASE
Set if a Database instance can not be located for the provided URI.
static intNO_SUCH_RESOURCE
Set if the requested Resource could not be located.
static intNO_SUCH_SERVICE
Set if the requested Service could not be located.
static intPERMISSION_DENIED
Set if access to the requested Collection can not be granted due to the lack of proper credentials.
static intUNKNOWN_ERROR
Set when a more detailed error can not be determined.
static intUNKNOWN_RESOURCE_TYPE
Set if the resource type requested is unknown to the API implementation.
static intVENDOR_ERROR
Set when a vendor specific error has occured.
static intWRONG_CONTENT_TYPE
Set if the content of a Resource is set to a content type different then that for which the Resource was intended to support.

Field Detail

COLLECTION_CLOSED

public static final int COLLECTION_CLOSED
Set when an operation is invoked against a Collection instance that has been closed.

INVALID_COLLECTION

public static final int INVALID_COLLECTION
Set if the Collection instance is in an invalid state.

INVALID_DATABASE

public static final int INVALID_DATABASE
Set if the Database instance being registered is invalid.

INVALID_RESOURCE

public static final int INVALID_RESOURCE
Set if the Resource provided to an operation is invalid.

INVALID_URI

public static final int INVALID_URI
Set if the URI format is invalid.

NOT_IMPLEMENTED

public static final int NOT_IMPLEMENTED
Set if the API implementation does not support the operation being invoked.

NO_SUCH_COLLECTION

public static final int NO_SUCH_COLLECTION
Set if the requested Collection could not be located.

NO_SUCH_DATABASE

public static final int NO_SUCH_DATABASE
Set if a Database instance can not be located for the provided URI.

NO_SUCH_RESOURCE

public static final int NO_SUCH_RESOURCE
Set if the requested Resource could not be located.

NO_SUCH_SERVICE

public static final int NO_SUCH_SERVICE
Set if the requested Service could not be located.

PERMISSION_DENIED

public static final int PERMISSION_DENIED
Set if access to the requested Collection can not be granted due to the lack of proper credentials.

UNKNOWN_ERROR

public static final int UNKNOWN_ERROR
Set when a more detailed error can not be determined.

UNKNOWN_RESOURCE_TYPE

public static final int UNKNOWN_RESOURCE_TYPE
Set if the resource type requested is unknown to the API implementation.

VENDOR_ERROR

public static final int VENDOR_ERROR
Set when a vendor specific error has occured.

WRONG_CONTENT_TYPE

public static final int WRONG_CONTENT_TYPE
Set if the content of a Resource is set to a content type different then that for which the Resource was intended to support.