Package com.adobe.repository
Classpublic class RepositoryException
InheritanceRepositoryException Inheritance Exception

Contains the shared behavior of all Repository exception classes. Each RepositoryException contains an error code that determines the cause and location of the exception.



Public Methods
 MethodDefined by
  
RepositoryException(int moduleCode, String message)
A constructor that uses a module code, which is used to determine the failure type associated with this exception.
RepositoryException
  
RepositoryException(int moduleCode, String message, Throwable cause)
RepositoryException
  
RepositoryException(int moduleCode)
A constructor that uses a module code, which is used to determine the failure type associated with this exception.
RepositoryException
  
RepositoryException(int moduleCode, Object[] messageArgs)
A constructor that uses a module code, which is used to determine the failure type associated with this exception.
RepositoryException
  
RepositoryException(int moduleCode, Throwable cause)
A constructor that uses the module code, which is used to determine the failure type associated with this exception, and the cause.
RepositoryException
  
RepositoryException(int moduleCode, Throwable cause, Object[] messageArgs)
A constructor that uses the module code, which is used to determine the failure type associated with this exception, the cause, and the messageArgs that are applied to the substitution variables in the message bundle string.
RepositoryException
  
Throwable getCause()
Retrieves the cause of this exception.
RepositoryException
  
String getErrorCode()
Retrieves the Repository error code for this exception.
RepositoryException
  
Retrieves the local code for this exception.
RepositoryException
  
String getMessage()
Retrieves the detailed message of this Throwable instance.
RepositoryException
  
Retrieves the module code for this exception.
RepositoryException
  
void printStackTrace(PrintStream printStream)
If the exception was serialized, and the cause was lost append the stored messages to the trace.
RepositoryException
  
void printStackTrace(PrintWriter printWriter)
If the exception was serialized, and the cause was lost append the stored messages to the trace.
RepositoryException
  
void setLocalCode(int localCode)
Sets the local code for this exception.
RepositoryException
  
void setMessageArgs(Object[] args)
Sets the arguments that will be applied to the message string.
RepositoryException
  
void setModuleCode(int moduleCode)
Sets the module code for this exception.
RepositoryException
Public Constants
 ConstantDefined by
  E_BAD_CALL_MEMBER_OF
[static] Bad call using a member of relation.
RepositoryException
  E_BAD_MAJOR_MINOR_COMBO
[static] Bad major/minor version combination [[major].[minor]].
RepositoryException
  E_BAD_RESOURCE_NAME
[static] The supplied resource name contains the following invalid characters: [string of invalid characters].
RepositoryException
  E_BAD_STATUS_LATEST_TO_UPDATED
[static] The user attempted to change the status of a resource from latest to updated when it is the latest version of the logical resource.
RepositoryException
  E_BAD_STATUS_OTHERLATEST_TO_UPDATED
[static] The user attempted to change the status of a resource from other to updated when the resource is the latest version of the logical resource.
RepositoryException
  E_BAD_STATUS_OTHERUPDATED_TO_LATEST
[static] The object status was changed from other updated to latest when it is not the latest version of the logical resource.
RepositoryException
  E_BAD_STATUS_UPDATED_TO_LATEST
[static] The user attempted to change the status of a resource from updated to latest when it is not the latest version of the logical resource.
RepositoryException
  E_CACHE_EXCEPTION
[static] Cache exception
RepositoryException
  E_COULD_NOT_EXTRACT_METADATA
[static] Could not extract metadata.
RepositoryException
  E_COULD_NOT_INSTANTIATE_METADATA_EXTRACTOR
[static] Could not instantiate a metadata extractor for [mimeType].
RepositoryException
  E_DSC_EXCEPTION
[static] DSC exception.
RepositoryException
  E_EXCEPTION
[static] Wraps a generic java.lang.Exception.
RepositoryException
  E_EXCLUSIVE_LOCK_EXISTS
[static] The resource [resourceUri] is exclusive-locked by user [userId].
RepositoryException
  E_FAILED_TO_DESRIALIZE_USER_CONTEXT
[static] Context deserialization failed and returned a null user context.
RepositoryException
  E_FILE_NOT_FOUND_OR_NO_ACCESS
[static] Resource [resourceUri] does not exist or you do not have sufficient rights to access it.
RepositoryException
  E_IMMUTABLE_ATTRIBUTE
[static] Attribute [attributeName] is immutable.
RepositoryException
  E_IMMUTABLE_PROPERTY
[static] The resource property [propertyName] in namespace [propertyNamespace] is immutable.
RepositoryException
  E_INCORRECT_VERSION_FORMAT
[static] The format of the value of the URL parameter [rv|cv] is incorrect.
RepositoryException
  E_INVALID_DEPTH
[static] Invalid depth value [value].
RepositoryException
  E_INVALID_LOCK_DEPTH
[static] Invalid lock depth.
RepositoryException
  E_INVALID_LOCK_SCOPE
[static] Invalid lock scope.
RepositoryException
  E_INVALID_VALUE
[static] Value [paramValue] is not valid for parameter [paramName].
RepositoryException
  E_INVALID_XML_NCNAME
[static] Value [paramValue] is not a valid XML NCName.
RepositoryException
  E_IO_EXCEPTION
[static] I/O exception.
RepositoryException
  E_LOCKED_BY_OTHER
[static] Resource [resourceUri] is locked by user [userName].
RepositoryException
  E_LOCK_NOT_FOUND
[static] A lock could not be found for resource [resourceUri].
RepositoryException
  E_MAJORVER_IN_USE
[static] Unable to increment major version because version [[major].0] already exists.
RepositoryException
  E_MINORVER_IN_USE
[static] Unable to increment minor version because version [[major].[minor]] already exists.
RepositoryException
  E_MUST_BE_A_PATH
[static] The resource URI [resourceUri] must be a path.
RepositoryException
  E_NO_ACCESS
[static] User access to the resource is not allowed for the permission request.
RepositoryException
  E_NO_LOCK_TOKEN
[static] No lock token submitted for locked resource [resourceUri].
RepositoryException
  E_NO_METADATA_EXTRACTOR_REGISTERED
[static] There is no metadata extractor registered for [mimeType].
RepositoryException
  E_NOT_AN_APPLICATION
[static] Resource [applicationUri] is not a LiveCycle application.
RepositoryException
  E_NOT_A_PATH
[static] When writing a new com.adobe.repository.infomodel.bean.Relation, a path-based identifier must be specified to identify the parent com.adobe.repository.infomodel.bean.ResourceCollection.
RepositoryException
  E_NOT_A_RESOURCE_COLLECTION
[static] The destination [resourceCollectionPath] is not a resource collection.
RepositoryException
  E_NOT_A_RESOURCE_OR_RESOURCE_COLLECTION
[static] The path [targetResourceCollectionPath] does not identify a resource or resource collection.
RepositoryException
  E_NOT_A_VERION_OF_THIS_RESOURCE
[static] The specified resource identifier ([resourceId]) is not a version of the resource you wish to update.
RepositoryException
  E_NULL_ELEMENT
[static] Array elements of parameter [paramName] cannot be null.
RepositoryException
  E_NULL_PARAM
[static] Parameter [paramName] cannot be null.
RepositoryException
  E_PERM_EXCEPTION
[static] The User Manager permissions were not loaded.
RepositoryException
  E_POF_EXCEPTION
[static] Wraps a POFException
RepositoryException
  E_PROPERTY_NOT_NULLABLE
[static] The resource property [propertyName] in namespace [propertyNamespace] cannot be assigned a null value or be removed.
RepositoryException
  E_RELATION_NOT_FOUND
[static] The relation with the source URI [sourceUri], the target URI [targetUri], and type of [typeValue] does not exist or you do not have sufficient rights to access it.
RepositoryException
  E_REMOTE_EXCEPTION
[static] Wraps a java.rmi.RemoteException.
RepositoryException
  E_RESERVED_NAMESPACE
[static] Property [name] cannot be added to reserved namespace [namespace].
RepositoryException
  E_RESERVED_VALUE
[static] Value [value] is reserved for future use for attribute [attributeName].
RepositoryException
  E_RESERVED_VALUE_RANGE
[static] Values [startValue]-[endValue] (inclusive) are reserved for future use for attribute [attributeName].
RepositoryException
  E_RESOURCE_EXISTS
[static] A resource exists at URI [targetResourceUri].
RepositoryException
  E_RESOURCE_IS_A_SYSTEM_PATH
[static] The specified source URI is a system resource collection, and cannot be moved or copied.
RepositoryException
  E_RESOURCE_IS_A_VERSION
[static] Two versions of the same resource cannot be made to relate in this manner.
RepositoryException
  E_RESOURCE_MANAGER_EXCEPTION
[static] Wraps a ResourceManagerException
RepositoryException
  E_SHARED_LOCK_EXISTS
[static] The resource [resourceUri] is share-locked by user [userId].
RepositoryException
  E_SYSTEM_PATH_MAY_NOT_BE_DELETED
[static] [path] is a system object and cannot be deleted.
RepositoryException
  E_SYSTEM_PATH_MAY_NOT_BE_UPDATED
[static] [resourceUri] is a system object and cannot be updated.
RepositoryException
  E_TYPE_MISMATCH
[static] Type mismatch: A com.adobe.repository.infomodel.bean.Resource must be updated with a com.adobe.repository.infomodel.bean.Resource of the same type.
RepositoryException
  E_UM_EXCEPTION
[static] Wraps a com.adobe.idp.um.api.UMException.
RepositoryException
  E_UNABLE_TO_PARSE_FILE
[static] Unable to parse the XMP metadata in the data stream.
RepositoryException
Constructor Detail
RepositoryException()
public RepositoryException(int moduleCode, String message)

A constructor that uses a module code, which is used to determine the failure type associated with this exception.

Parameters
moduleCode — The module code used to determine the failure type associated with this exception.
 
message — The message that describes the exception being thrown
RepositoryException() 
public RepositoryException(int moduleCode, String message, Throwable cause) Parameters
moduleCode — The module code used to determine the failure type associated with this exception.
 
message — The message that describes the exception being thrown
 
cause — The root cause of the exception
RepositoryException() 
public RepositoryException(int moduleCode)

A constructor that uses a module code, which is used to determine the failure type associated with this exception.

Parameters
moduleCode — The module code used to determine the failure type associated with this exception.
RepositoryException() 
public RepositoryException(int moduleCode, Object[] messageArgs)

A constructor that uses a module code, which is used to determine the failure type associated with this exception. messageArgs are applied to the substitution variables in the message bundle string.

Parameters
moduleCode — The module code used to determine the failure type associated with this exception.
 
messageArgs — The arguments for the message.
RepositoryException() 
public RepositoryException(int moduleCode, Throwable cause)

A constructor that uses the module code, which is used to determine the failure type associated with this exception, and the cause.

Parameters
moduleCode — The module code associated with this excpetion.
 
cause — The cause of this exception.
RepositoryException() 
public RepositoryException(int moduleCode, Throwable cause, Object[] messageArgs)

A constructor that uses the module code, which is used to determine the failure type associated with this exception, the cause, and the messageArgs that are applied to the substitution variables in the message bundle string.

Parameters
moduleCode — The module code associated with this exception.
 
cause — The cause of this exception.
 
messageArgs — The arguments for the message.
Method Detail
getCause()
public Throwable getCause()

Retrieves the cause of this exception.

Returns
The cause of the exception.
getErrorCode() 
public String getErrorCode()

Retrieves the Repository error code for this exception.

Returns
The Repository error code for this exception.
getLocalCode() 
public int getLocalCode()

Retrieves the local code for this exception. The local code provides additional information about the nature of the failure that caused the exception.

For example, this method would return 1 if the error code was ALC-REP-018-001.

Returns
The local code for this exception.
getMessage() 
public String getMessage()

Retrieves the detailed message of this Throwable instance.

Returns
The detailed message string of this Throwable instance. It may be null.
getModuleCode() 
public int getModuleCode()

Retrieves the module code for this exception.

For example, this method would return 18 if the error code was ALC-REP-018-000.

Returns
The module code associated with this exception.
printStackTrace() 
public void printStackTrace(PrintStream printStream)

If the exception was serialized, and the cause was lost append the stored messages to the trace.

Parameters

printStream

printStackTrace() 
public void printStackTrace(PrintWriter printWriter)

If the exception was serialized, and the cause was lost append the stored messages to the trace.

Parameters

printWriter

setLocalCode() 
public void setLocalCode(int localCode)

Sets the local code for this exception. The local code provides additional information about the nature of the failure that caused the exception.

Parameters

localCode — The local code for this exception.

setMessageArgs() 
public void setMessageArgs(Object[] args)

Sets the arguments that will be applied to the message string.

Parameters

args — The arguments that will be applied to the message string.

setModuleCode() 
public void setModuleCode(int moduleCode)

Sets the module code for this exception.

Parameters

moduleCode — The module code associated with this exception.

Constant Detail
E_BAD_CALL_MEMBER_OFConstant
public static final E_BAD_CALL_MEMBER_OF

Bad call using a member of relation. Relationships of type Relation.TYPE_MEMBER_OF must be manipulated through calls to ResourceRepository.deleteResource() and ResourceRepository.writeResource().

E_BAD_MAJOR_MINOR_COMBOConstant 
public static final E_BAD_MAJOR_MINOR_COMBO

Bad major/minor version combination [[major].[minor]].

E_BAD_RESOURCE_NAMEConstant 
public static final E_BAD_RESOURCE_NAME

The supplied resource name contains the following invalid characters: [string of invalid characters].

E_BAD_STATUS_LATEST_TO_UPDATEDConstant 
public static final E_BAD_STATUS_LATEST_TO_UPDATED

The user attempted to change the status of a resource from latest to updated when it is the latest version of the logical resource.

E_BAD_STATUS_OTHERLATEST_TO_UPDATEDConstant 
public static final E_BAD_STATUS_OTHERLATEST_TO_UPDATED

The user attempted to change the status of a resource from other to updated when the resource is the latest version of the logical resource.

E_BAD_STATUS_OTHERUPDATED_TO_LATESTConstant 
public static final E_BAD_STATUS_OTHERUPDATED_TO_LATEST

The object status was changed from other updated to latest when it is not the latest version of the logical resource.

E_BAD_STATUS_UPDATED_TO_LATESTConstant 
public static final E_BAD_STATUS_UPDATED_TO_LATEST

The user attempted to change the status of a resource from updated to latest when it is not the latest version of the logical resource.

E_CACHE_EXCEPTIONConstant 
public static final E_CACHE_EXCEPTION

Cache exception

E_COULD_NOT_EXTRACT_METADATAConstant 
public static final E_COULD_NOT_EXTRACT_METADATA

Could not extract metadata.

E_COULD_NOT_INSTANTIATE_METADATA_EXTRACTORConstant 
public static final E_COULD_NOT_INSTANTIATE_METADATA_EXTRACTOR

Could not instantiate a metadata extractor for [mimeType].

E_DSC_EXCEPTIONConstant 
public static final E_DSC_EXCEPTION

DSC exception.

E_EXCEPTIONConstant 
public static final E_EXCEPTION

Wraps a generic java.lang.Exception.

E_EXCLUSIVE_LOCK_EXISTSConstant 
public static final E_EXCLUSIVE_LOCK_EXISTS

The resource [resourceUri] is exclusive-locked by user [userId].

E_FAILED_TO_DESRIALIZE_USER_CONTEXTConstant 
public static final E_FAILED_TO_DESRIALIZE_USER_CONTEXT

Context deserialization failed and returned a null user context.

E_FILE_NOT_FOUND_OR_NO_ACCESSConstant 
public static final E_FILE_NOT_FOUND_OR_NO_ACCESS

Resource [resourceUri] does not exist or you do not have sufficient rights to access it.

E_IMMUTABLE_ATTRIBUTEConstant 
public static final E_IMMUTABLE_ATTRIBUTE

Attribute [attributeName] is immutable.

E_IMMUTABLE_PROPERTYConstant 
public static final E_IMMUTABLE_PROPERTY

The resource property [propertyName] in namespace [propertyNamespace] is immutable.

E_INCORRECT_VERSION_FORMATConstant 
public static final E_INCORRECT_VERSION_FORMAT

The format of the value of the URL parameter [rv|cv] is incorrect. The supplied value is [versionString]; "major.minor" was expected.

E_INVALID_DEPTHConstant 
public static final E_INVALID_DEPTH

Invalid depth value [value]. The depth may only be Lock.DEPTH_ZERO, Lock.DEPTH_ONE, or Lock.DEPTH_INFINITE.

E_INVALID_LOCK_DEPTHConstant 
public static final E_INVALID_LOCK_DEPTH

Invalid lock depth. Lock depth may only be Lock.DEPTH_ZERO, Lock.DEPTH_ONE, or Lock.DEPTH_INFINITE.

E_INVALID_LOCK_SCOPEConstant 
public static final E_INVALID_LOCK_SCOPE

Invalid lock scope. Lock scope may only be Lock.SCOPE_EXCLUSIVE or Lock.SCOPE_SHARED.

E_INVALID_VALUEConstant 
public static final E_INVALID_VALUE

Value [paramValue] is not valid for parameter [paramName].

E_INVALID_XML_NCNAMEConstant 
public static final E_INVALID_XML_NCNAME

Value [paramValue] is not a valid XML NCName.

E_IO_EXCEPTIONConstant 
public static final E_IO_EXCEPTION

I/O exception.

E_LOCK_NOT_FOUNDConstant 
public static final E_LOCK_NOT_FOUND

A lock could not be found for resource [resourceUri]. You do not own the lock, do not have the proper lock token, or are not unlocking the top level resource for the lock.

E_LOCKED_BY_OTHERConstant 
public static final E_LOCKED_BY_OTHER

Resource [resourceUri] is locked by user [userName].

E_MAJORVER_IN_USEConstant 
public static final E_MAJORVER_IN_USE

Unable to increment major version because version [[major].0] already exists.

E_MINORVER_IN_USEConstant 
public static final E_MINORVER_IN_USE

Unable to increment minor version because version [[major].[minor]] already exists.

E_MUST_BE_A_PATHConstant 
public static final E_MUST_BE_A_PATH

The resource URI [resourceUri] must be a path.

E_NO_ACCESSConstant 
public static final E_NO_ACCESS
Deprecated: use E_FILE_NOT_FOUND_OR_NO_ACCESS instead

User access to the resource is not allowed for the permission request.

E_NO_LOCK_TOKENConstant 
public static final E_NO_LOCK_TOKEN
Deprecated: 

No lock token submitted for locked resource [resourceUri].

E_NO_METADATA_EXTRACTOR_REGISTEREDConstant 
public static final E_NO_METADATA_EXTRACTOR_REGISTERED

There is no metadata extractor registered for [mimeType].

E_NOT_A_PATHConstant 
public static final E_NOT_A_PATH

When writing a new com.adobe.repository.infomodel.bean.Relation, a path-based identifier must be specified to identify the parent com.adobe.repository.infomodel.bean.ResourceCollection. Since resource collections (libraries, applications) may have more than one path, path-based identifiers are required to select the correct path. (It would not be possible to determine which path to choose if there were two or more paths for a com.adobe.repository.infomodel.bean.ResourceCollection.)

E_NOT_A_RESOURCE_COLLECTIONConstant 
public static final E_NOT_A_RESOURCE_COLLECTION

The destination [resourceCollectionPath] is not a resource collection. Resources may only be moved or copied into resource collections.

E_NOT_A_RESOURCE_OR_RESOURCE_COLLECTIONConstant 
public static final E_NOT_A_RESOURCE_OR_RESOURCE_COLLECTION

The path [targetResourceCollectionPath] does not identify a resource or resource collection.

E_NOT_A_VERION_OF_THIS_RESOURCEConstant 
public static final E_NOT_A_VERION_OF_THIS_RESOURCE

The specified resource identifier ([resourceId]) is not a version of the resource you wish to update.

E_NOT_AN_APPLICATIONConstant 
public static final E_NOT_AN_APPLICATION

Resource [applicationUri] is not a LiveCycle application.

E_NULL_ELEMENTConstant 
public static final E_NULL_ELEMENT

Array elements of parameter [paramName] cannot be null.

E_NULL_PARAMConstant 
public static final E_NULL_PARAM

Parameter [paramName] cannot be null.

E_PERM_EXCEPTIONConstant 
public static final E_PERM_EXCEPTION

The User Manager permissions were not loaded.

E_POF_EXCEPTIONConstant 
public static final E_POF_EXCEPTION

Wraps a POFException

E_PROPERTY_NOT_NULLABLEConstant 
public static final E_PROPERTY_NOT_NULLABLE

The resource property [propertyName] in namespace [propertyNamespace] cannot be assigned a null value or be removed.

E_RELATION_NOT_FOUNDConstant 
public static final E_RELATION_NOT_FOUND

The relation with the source URI [sourceUri], the target URI [targetUri], and type of [typeValue] does not exist or you do not have sufficient rights to access it.

E_REMOTE_EXCEPTIONConstant 
public static final E_REMOTE_EXCEPTION

Wraps a java.rmi.RemoteException.

E_RESERVED_NAMESPACEConstant 
public static final E_RESERVED_NAMESPACE

Property [name] cannot be added to reserved namespace [namespace].

E_RESERVED_VALUEConstant 
public static final E_RESERVED_VALUE

Value [value] is reserved for future use for attribute [attributeName].

E_RESERVED_VALUE_RANGEConstant 
public static final E_RESERVED_VALUE_RANGE

Values [startValue]-[endValue] (inclusive) are reserved for future use for attribute [attributeName].

E_RESOURCE_EXISTSConstant 
public static final E_RESOURCE_EXISTS

A resource exists at URI [targetResourceUri].

E_RESOURCE_IS_A_SYSTEM_PATHConstant 
public static final E_RESOURCE_IS_A_SYSTEM_PATH

The specified source URI is a system resource collection, and cannot be moved or copied.

E_RESOURCE_IS_A_VERSIONConstant 
public static final E_RESOURCE_IS_A_VERSION

Two versions of the same resource cannot be made to relate in this manner.

E_RESOURCE_MANAGER_EXCEPTIONConstant 
public static final E_RESOURCE_MANAGER_EXCEPTION

Wraps a ResourceManagerException

E_SHARED_LOCK_EXISTSConstant 
public static final E_SHARED_LOCK_EXISTS

The resource [resourceUri] is share-locked by user [userId].

E_SYSTEM_PATH_MAY_NOT_BE_DELETEDConstant 
public static final E_SYSTEM_PATH_MAY_NOT_BE_DELETED[path] is a system object and cannot be deleted.

E_SYSTEM_PATH_MAY_NOT_BE_UPDATEDConstant 
public static final E_SYSTEM_PATH_MAY_NOT_BE_UPDATED[resourceUri] is a system object and cannot be updated.

E_TYPE_MISMATCHConstant 
public static final E_TYPE_MISMATCH

Type mismatch: A com.adobe.repository.infomodel.bean.Resource must be updated with a com.adobe.repository.infomodel.bean.Resource of the same type.

E_UM_EXCEPTIONConstant 
public static final E_UM_EXCEPTION

Wraps a com.adobe.idp.um.api.UMException.

E_UNABLE_TO_PARSE_FILEConstant 
public static final E_UNABLE_TO_PARSE_FILE

Unable to parse the XMP metadata in the data stream.





 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/javadoc/com/adobe/repository/RepositoryException.html