|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception com.adobe.repository.RepositoryException
public class RepositoryException
Contains the shared behavior of all Repository exception classes. Each RepositoryException
contains an
error code that determines the cause and location of the exception.
Field Summary | |
---|---|
static int |
E_BAD_CALL_MEMBER_OF
Bad call using a member of relation. |
static int |
E_BAD_MAJOR_MINOR_COMBO
Bad major/minor version combination [[major].[minor]] . |
static int |
E_BAD_RESOURCE_NAME
The supplied resource name contains the following invalid characters: [string of invalid characters] . |
static int |
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. |
static int |
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. |
static int |
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. |
static int |
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. |
static int |
E_CACHE_EXCEPTION
Cache exception |
static int |
E_CONTACT_ID_DOES_NOT_EXIST
The supplied contactId value [contactId] was not found in the User Management database. |
static int |
E_COULD_NOT_EXTRACT_METADATA
Could not extract metadata. |
static int |
E_COULD_NOT_INSTANTIATE_METADATA_EXTRACTOR
Could not instantiate a metadata extractor for [mimeType] . |
static int |
E_DSC_EXCEPTION
DSC exception. |
static int |
E_EXCEPTION
Wraps a generic java.lang.Exception . |
static int |
E_EXCLUSIVE_LOCK_EXISTS
The resource [resourceUri] is exclusive-locked by user [userId] . |
static int |
E_FAILED_TO_DESRIALIZE_USER_CONTEXT
Context deserialization failed and returned a null user context. |
static int |
E_FILE_NOT_FOUND_OR_NO_ACCESS
Resource [resourceUri] does not exist or you do not have sufficient rights to access it. |
static int |
E_IMMUTABLE_ATTRIBUTE
Attribute [attributeName] is immutable. |
static int |
E_IMMUTABLE_PROPERTY
The resource property [propertyName] in namespace [propertyNamespace] is immutable. |
static int |
E_INCORRECT_VERSION_FORMAT
The format of the value of the URL parameter [rv|cv] is incorrect. |
static int |
E_INVALID_DEPTH
Invalid depth value [value] . |
static int |
E_INVALID_LOCK_DEPTH
Invalid lock depth. |
static int |
E_INVALID_LOCK_SCOPE
Invalid lock scope. |
static int |
E_INVALID_VALUE
Value [paramValue] is not valid for parameter [paramName] . |
static int |
E_INVALID_XML_NCNAME
Value [paramValue] is not a valid XML NCName. |
static int |
E_IO_EXCEPTION
I/O exception. |
static int |
E_LOCK_NOT_FOUND
A lock could not be found for resource [resourceUri] . |
static int |
E_LOCKED_BY_OTHER
Resource [resourceUri] is locked by user [userName] . |
static int |
E_MAJORVER_IN_USE
Unable to increment major version because version [[major].0] already exists. |
static int |
E_MINORVER_IN_USE
Unable to increment minor version because version [[major].[minor]] already exists. |
static int |
E_MUST_BE_A_PATH
The resource URI [resourceUri] must be a path. |
static int |
E_NO_ACCESS
Deprecated. use E_FILE_NOT_FOUND_OR_NO_ACCESS instead |
static int |
E_NO_LOCK_TOKEN
Deprecated. |
static int |
E_NO_METADATA_EXTRACTOR_REGISTERED
There is no metadata extractor registered for [mimeType] . |
static int |
E_NOT_A_PATH
When writing a new Relation ,
a path-based identifier must be specified to identify
the parent ResourceCollection . |
static int |
E_NOT_A_RESOURCE_COLLECTION
The destination [resourceCollectionPath] is not a resource collection. |
static int |
E_NOT_A_RESOURCE_OR_RESOURCE_COLLECTION
The path [targetResourceCollectionPath] does not identify a resource or resource collection. |
static int |
E_NOT_A_VERION_OF_THIS_RESOURCE
The specified resource identifier ( [resourceId] ) is not a version of the resource you wish to update. |
static int |
E_NOT_AN_APPLICATION
Resource [applicationUri] is not a Adobe Experience Manager forms application. |
static int |
E_NULL_ELEMENT
Array elements of parameter [paramName] cannot be null . |
static int |
E_NULL_PARAM
Parameter [paramName] cannot be null . |
static int |
E_PERM_EXCEPTION
The User Manager permissions were not loaded. |
static int |
E_POF_EXCEPTION
Wraps a POFException |
static int |
E_PROPERTY_NOT_NULLABLE
The resource property [propertyName] in namespace [propertyNamespace]
cannot be assigned a null value or be removed. |
static int |
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. |
static int |
E_REMOTE_EXCEPTION
Wraps a java.rmi.RemoteException . |
static int |
E_RESERVED_NAMESPACE
Property [name] cannot be added to reserved namespace [namespace] . |
static int |
E_RESERVED_VALUE
Value [value] is reserved for future use for attribute [attributeName] . |
static int |
E_RESERVED_VALUE_RANGE
Values [startValue]-[endValue] (inclusive) are reserved for future use for attribute [attributeName] . |
static int |
E_RESOURCE_EXISTS
A resource exists at URI [targetResourceUri] . |
static int |
E_RESOURCE_IS_A_SYSTEM_PATH
The specified source URI is a system resource collection, and cannot be moved or copied. |
static int |
E_RESOURCE_IS_A_VERSION
Two versions of the same resource cannot be made to relate in this manner. |
static int |
E_RESOURCE_MANAGER_EXCEPTION
Wraps a ResourceManagerException |
static int |
E_SHARED_LOCK_EXISTS
The resource [resourceUri] is share-locked by user [userId] . |
static int |
E_SYSTEM_PATH_MAY_NOT_BE_DELETED
[path] is a system object and cannot be deleted. |
static int |
E_SYSTEM_PATH_MAY_NOT_BE_UPDATED
[resourceUri] is a system object and cannot be updated. |
static int |
E_TYPE_MISMATCH
Type mismatch: A Resource
must be updated with a Resource
of the same type. |
static int |
E_UM_EXCEPTION
Wraps a UMException . |
static int |
E_UNABLE_TO_PARSE_FILE
Unable to parse the XMP metadata in the data stream. |
Constructor Summary | |
---|---|
RepositoryException(int moduleCode)
A constructor that uses a module code, which is used to determine the failure type associated with this exception. |
|
RepositoryException(int moduleCode,
java.lang.Object[] messageArgs)
A constructor that uses a module code, which is used to determine the failure type associated with this exception. |
|
RepositoryException(int moduleCode,
java.lang.String message)
A constructor that uses a module code, which is used to determine the failure type associated with this exception. |
|
RepositoryException(int moduleCode,
java.lang.String message,
java.lang.Throwable cause)
|
|
RepositoryException(int moduleCode,
java.lang.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(int moduleCode,
java.lang.Throwable cause,
java.lang.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. |
Method Summary | |
---|---|
java.lang.Throwable |
getCause()
Retrieves the cause of this exception. |
java.lang.String |
getErrorCode()
Retrieves the Repository error code for this exception. |
int |
getLocalCode()
Retrieves the local code for this exception. |
java.lang.String |
getMessage()
Retrieves the detailed message of this Throwable instance. |
int |
getModuleCode()
Retrieves the module code for this exception. |
void |
printStackTrace(java.io.PrintStream printStream)
If the exception was serialized, and the cause was lost append the stored messages to the trace. |
void |
printStackTrace(java.io.PrintWriter printWriter)
If the exception was serialized, and the cause was lost append the stored messages to the trace. |
void |
setLocalCode(int localCode)
Sets the local code for this exception. |
void |
setMessageArgs(java.lang.Object[] args)
Sets the arguments that will be applied to the message string. |
void |
setModuleCode(int moduleCode)
Sets the module code for this exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int E_NULL_PARAM
[paramName]
cannot be null
.
public static final int E_NULL_ELEMENT
[paramName]
cannot be null
.
public static final int E_RESERVED_VALUE
[value]
is reserved for future use for attribute [attributeName]
.
public static final int E_INVALID_VALUE
[paramValue]
is not valid for parameter [paramName]
.
public static final int E_RESOURCE_EXISTS
[targetResourceUri]
.
public static final int E_LOCKED_BY_OTHER
[resourceUri]
is locked by user [userName]
.
public static final int E_NO_LOCK_TOKEN
[resourceUri]
.
public static final int E_FILE_NOT_FOUND_OR_NO_ACCESS
[resourceUri]
does not exist or you do not have sufficient rights to access it.
public static final int E_IMMUTABLE_ATTRIBUTE
[attributeName]
is immutable.
public static final int E_MAJORVER_IN_USE
[[major].0]
already exists.
public static final int E_MINORVER_IN_USE
[[major].[minor]]
already exists.
public static final int E_NOT_AN_APPLICATION
[applicationUri]
is not a Adobe Experience Manager forms application.
public static final int E_BAD_CALL_MEMBER_OF
Relation.TYPE_MEMBER_OF
must be manipulated through calls to
ResourceRepository.deleteResources()
and
ResourceRepository.writeResource()
.
public static final int E_BAD_MAJOR_MINOR_COMBO
[[major].[minor]]
.
public static final int E_NOT_A_PATH
Relation
,
a path-based identifier must be specified to identify
the parent 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 ResourceCollection
.)
public static final int E_RESERVED_VALUE_RANGE
[startValue]-[endValue]
(inclusive) are reserved for future use for attribute [attributeName]
.
public static final int E_INVALID_LOCK_SCOPE
Lock
scope
may only be Lock.SCOPE_EXCLUSIVE
or
Lock.SCOPE_SHARED
.
public static final int E_INVALID_LOCK_DEPTH
Lock
depth may only be
Lock.DEPTH_ZERO
,
Lock.DEPTH_ONE
,
or Lock.DEPTH_INFINITE
.
public static final int E_LOCK_NOT_FOUND
[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.
public static final int E_BAD_STATUS_LATEST_TO_UPDATED
public static final int E_BAD_STATUS_OTHERLATEST_TO_UPDATED
public static final int E_BAD_STATUS_UPDATED_TO_LATEST
public static final int E_BAD_STATUS_OTHERUPDATED_TO_LATEST
public static final int E_RELATION_NOT_FOUND
[sourceUri]
, the target URI [targetUri]
,
and type of [typeValue]
does not exist or you do not have sufficient rights to access it.
public static final int E_SHARED_LOCK_EXISTS
[resourceUri]
is share-locked by user [userId]
.
public static final int E_EXCLUSIVE_LOCK_EXISTS
[resourceUri]
is exclusive-locked by user [userId]
.
public static final int E_RESOURCE_IS_A_VERSION
public static final int E_BAD_RESOURCE_NAME
[string of invalid characters]
.
public static final int E_IMMUTABLE_PROPERTY
[propertyName]
in namespace [propertyNamespace]
is immutable.
public static final int E_PROPERTY_NOT_NULLABLE
[propertyName]
in namespace [propertyNamespace]
cannot be assigned a null
value or be removed.
public static final int E_MUST_BE_A_PATH
[resourceUri]
must be a path.
public static final int E_SYSTEM_PATH_MAY_NOT_BE_DELETED
[path]
is a system object and cannot be deleted.
public static final int E_RESERVED_NAMESPACE
[name]
cannot be added to reserved namespace [namespace]
.
public static final int E_NOT_A_RESOURCE_OR_RESOURCE_COLLECTION
[targetResourceCollectionPath]
does not identify a resource or resource collection.
public static final int E_INVALID_DEPTH
[value]
. The depth may only be
Lock.DEPTH_ZERO
,
Lock.DEPTH_ONE
,
or Lock.DEPTH_INFINITE
.
public static final int E_NOT_A_RESOURCE_COLLECTION
[resourceCollectionPath]
is not a resource collection.
Resources may only be moved or copied into resource collections.
public static final int E_SYSTEM_PATH_MAY_NOT_BE_UPDATED
[resourceUri]
is a system object and cannot be updated.
public static final int E_TYPE_MISMATCH
Resource
must be updated with a Resource
of the same type.
public static final int E_PERM_EXCEPTION
public static final int E_NO_ACCESS
public static final int E_INCORRECT_VERSION_FORMAT
[rv|cv]
is incorrect.
The supplied value is [versionString]
; "major.minor"
was expected.
public static final int E_FAILED_TO_DESRIALIZE_USER_CONTEXT
null
user context.
public static final int E_RESOURCE_IS_A_SYSTEM_PATH
public static final int E_NOT_A_VERION_OF_THIS_RESOURCE
[resourceId]
) is not a version of the resource you wish to update.
public static final int E_INVALID_XML_NCNAME
[paramValue]
is not a valid XML NCName.
public static final int E_CONTACT_ID_DOES_NOT_EXIST
public static final int E_POF_EXCEPTION
public static final int E_UM_EXCEPTION
UMException
.
public static final int E_REMOTE_EXCEPTION
java.rmi.RemoteException
.
public static final int E_EXCEPTION
java.lang.Exception
.
public static final int E_RESOURCE_MANAGER_EXCEPTION
public static final int E_IO_EXCEPTION
public static final int E_DSC_EXCEPTION
public static final int E_CACHE_EXCEPTION
public static final int E_NO_METADATA_EXTRACTOR_REGISTERED
[mimeType]
.
public static final int E_COULD_NOT_INSTANTIATE_METADATA_EXTRACTOR
[mimeType]
.
public static final int E_COULD_NOT_EXTRACT_METADATA
public static final int E_UNABLE_TO_PARSE_FILE
Constructor Detail |
---|
public RepositoryException(int moduleCode, java.lang.String message)
moduleCode
- The module code used to determine the failure type associated with this exception.message
- The message that describes the exception being thrownpublic RepositoryException(int moduleCode, java.lang.String message, java.lang.Throwable cause)
moduleCode
- The module code used to determine the failure type associated with this exception.message
- The message that describes the exception being throwncause
- The root cause of the exceptionpublic RepositoryException(int moduleCode)
moduleCode
- The module code used to determine the failure type associated with this exception.public RepositoryException(int moduleCode, java.lang.Object[] messageArgs)
messageArgs
are applied to the substitution variables in the message bundle string.
moduleCode
- The module code used to determine the failure type associated with this exception.messageArgs
- The arguments for the message.public RepositoryException(int moduleCode, java.lang.Throwable cause)
cause
.
moduleCode
- The module code associated with this excpetion.cause
- The cause of this exception.public RepositoryException(int moduleCode, java.lang.Throwable cause, java.lang.Object[] messageArgs)
cause
,
and the messageArgs
that are applied to the substitution variables in the message bundle string.
moduleCode
- The module code associated with this exception.cause
- The cause
of this exception.messageArgs
- The arguments for the message.Method Detail |
---|
public java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
public int getModuleCode()
For example, this method would return 18
if the error code was ALC-REP-018-000
.
public void setModuleCode(int moduleCode)
moduleCode
- The module code associated with this exception.public void setLocalCode(int localCode)
localCode
- The local code for this exception.public int getLocalCode()
For example, this method would return 1
if the error code was ALC-REP-018-001
.
public void setMessageArgs(java.lang.Object[] args)
args
- The arguments that will be applied to the message string.public java.lang.String getErrorCode()
public java.lang.String getMessage()
Throwable
instance.
getMessage
in class java.lang.Throwable
Throwable
instance. It may be null
.public void printStackTrace(java.io.PrintStream printStream)
printStackTrace
in class java.lang.Throwable
printStream
- public void printStackTrace(java.io.PrintWriter printWriter)
printStackTrace
in class java.lang.Throwable
printWriter
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |