Package com.documentum.fc.common
Class DfException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.documentum.fc.common.DfException
- All Implemented Interfaces:
IDfException
,Serializable
- Direct Known Subclasses:
DfAspectOperationException
,DfContentAreaException
,DfContentTemporarilyUnavailableException
,DfDeadlockException
,DfDocbaseUnreachableException
,DfFilterException
,DfObjectNotFoundException
,DfOutOfServerSessionsException
,DfOutOfSessionsException
,DfRestrictedAccessException
,DfScopingException
,DfSearchException
,DfServiceException
,DfTypedObjectException
,DfUserException
,DfValidationException
,InvocationException
The base class for all DFC checked exceptions.
- See Also:
-
Field Summary
Fields inherited from interface com.documentum.fc.common.IDfException
DFC_E_BAD_FULL_FORMAT, DM_DFC_E_BAD_CLASS, DM_DFC_E_BAD_INDEX, DM_DFC_E_BAD_VALUE, DM_DFC_E_CLASS_NOT_FOUND, DM_DFC_E_CONVERTED_EXCEPTION, DM_DFC_E_INIT_DMCL, DM_DFC_E_INIT_ERROR, DM_DFC_E_INVALID_OPER_ON_MANAGED_SESSION, DM_DFC_E_NOT_PROGRAMMATIC, DM_DFC_E_NOT_SUPPORTED, DM_DFC_E_NOT_SUPPORTED_BY_SERVER, DM_DFC_E_NOT_SUPPORTED_FOR_GETTING_SYSOBJECT_ATTRIBUTE, DM_DFC_E_NOT_SUPPORTED_FOR_MODIFYING_SYSOBJECT_ATTRS, DM_DFC_E_NOT_SUPPORTED_FOR_SETTING_SYSOBJECT_ATTRIBUTE, DM_DFC_E_OBJECT_DISCONNECTED, DM_DFC_E_OBJECT_NOT_INITIALIZED, DM_DFC_E_PATH_NOT_FOUND, DM_DFC_E_RD_NO_SAVED_CONTENT, DM_DFC_E_RD_STORE_NOT_RETENTION_ENABLED, DM_DFC_E_SERVER, DM_DFC_E_TYPE_MISMATCH, DM_DFC_E_TYPE_MISMATCH_ADD, DM_DFC_E_TYPE_MISMATCH_COMP, DM_DFC_E_TYPE_MISMATCH_GET, DM_DFC_E_TYPE_NOT_FOUND, DM_DFC_E_UNDEFINED, DM_DFC_E_UNKNOWN_OBJECT_TYPE, DM_DFC_EXCEPTION_CANNOT_CHANGE_ASSEMBLED_FROM_ID, DM_DFC_EXCEPTION_CANNOT_CHANGE_ATTRIBUTE, DM_DFC_EXCEPTION_CANNOT_CHANGE_CHRONICLE_ID, DM_DFC_EXCEPTION_CANNOT_CHANGE_CONTENT_SIZE, DM_DFC_EXCEPTION_CANNOT_CHANGE_FROZEN_ASSEMBLY_STATUS, DM_DFC_EXCEPTION_CANNOT_CHANGE_IMMUTABLE_ATTRIBUTE, DM_DFC_EXCEPTION_CANNOT_CHANGE_INTERNAL_ATTRIBUTE, DM_DFC_EXCEPTION_CANNOT_CHANGE_LINK_CNT, DM_DFC_EXCEPTION_CANNOT_CHANGE_LOCK_STATUS, DM_DFC_EXCEPTION_CANNOT_CHANGE_OBJECT_ID, DM_DFC_EXCEPTION_CANNOT_CHANGE_OBJECT_TYPE, DM_DFC_EXCEPTION_CANNOT_CHANGE_OWN_XPRIVILEGE, DM_DFC_EXCEPTION_CANNOT_CHANGE_REFERENCE_STATUS, DM_DFC_EXCEPTION_CANNOT_CHANGE_REPLICA_STATUS, DM_DFC_EXCEPTION_CANNOT_CHANGE_VERSION_LABELS, DM_DFC_EXCEPTION_CANNOT_CHANGE_VIRTUAL_DOC_STATUS, DM_DFC_EXCEPTION_ILLEGAL_ARGUMENT_BOOLEAN_EXPECTED, DM_DFC_EXCEPTION_ILLEGAL_ARGUMENT_IDFID_EXPECTED, DM_DFC_EXCEPTION_ILLEGAL_ARGUMENT_IDFLIST_EXPECTED, DM_DFC_EXCEPTION_ILLEGAL_ARGUMENT_INTEGER_EXPECTED, DM_DFC_EXCEPTION_ILLEGAL_ARGUMENT_STRING_EXPECTED, DM_DFC_EXCEPTION_MANDATORY_ATTRIBUTES_MISSING, DM_DFC_EXCEPTION_OBJECT_ID_MISMATCH, DM_DFC_EXCEPTION_OBJECT_TYPE_MISMATCH, DM_DFC_EXCEPTION_REPEATING_ATTRIBUTE_NOT_SET, DM_DFC_EXCEPTION_SYS_OBJECT_ALREADY_EXISTS, DM_DFCBP_E_ALIAS_ALREADY_EXISTS, DM_DFCBP_E_ALIAS_NOT_EXIST, DM_DFCCOLL_E_BAD_QUERY_TYPE, DM_DFCCOLL_E_BAD_STATE, DM_DFCCTXTMGR_E_GETCONTEXT, DM_DFCQB_BAD_TIME_PATTERN, DM_DFCQB_FILE_ERROR, DM_DFCQB_INTERNAL_ERROR, DM_DFCQB_NO_PATH_SPECIFIED, DM_DFCRM_E_OBJCARR_ERROR, DM_DFCSESS_E_BAD_ADOPT_SESSID, DM_DFCSESS_E_DISCONNECTED, DM_DFCSESS_E_FAILED, DM_DFCSESS_E_FAILED_EX, DM_DFCSESS_E_ILLEGAL_OP, DM_DFCSP_INVALID_CUSTOM_RULE, DM_DFCSP_NO_RULES, DM_DFCSP_NOT_SUBTYPE_OF_SYSOBJECT_ERROR, DM_DFCSP_RELATION_EXISTS_ERROR, DM_DFCSP_RF_NO_ATTRIBUTE, DM_DFCSP_RF_NO_DATA_TYPE, DM_DFCSP_RF_NO_RELATION_OP, DM_DFCSP_RF_NO_VALUE, DM_DFCSP_RF_TYPE_OP_MISMATCH, DM_DFCSP_RL_FACTORS_OPS_MISMATCH, DM_DFCSP_RL_NO_FACTORS, DM_DFCSP_RL_NO_LOGIC_OP, DM_DFCSP_RL_NO_STORAGE, DM_DFCSP_RULE_VALIDATION_ERROR, DM_DFCSP_RULES_NOT_RENDERED_ERROR, DM_DFCSP_STORAGE_POLICY_ERROR, DM_DFCSP_STORAGE_POLICY_NOT_SAVED_ERROR, DM_DFCWF_E_APPEND_NOTE, DM_DFCWF_E_BAD_OBJECT, DM_DFCWF_E_BAD_TEMPLATE, DM_DFCWF_E_INVALID_GROUP, DM_DFCWF_E_MISSING_TEMPLATE, DM_DFCWF_E_NO_OBJECT, DM_DFCWF_E_NO_USER, DM_DFCWF_E_START_FAILED, DM_DFCWF_E_USER_LIMIT, DM_EXPR_E_EVALUATE, DM_EXPR_E_EVALUATOR_LOAD_FAIL, DM_EXPR_E_PARSE, DM_EXPR_E_PARSE_LOAD_FAIL, DM_NOTDFC_E_EXTERNAL, DM_NOTDFC_E_JAVA, DM_TEMPVDM_E_ERROR, DM_VALIDATION_E_ATTR_RULES, DM_VALIDATION_E_ATTR_RULES_NO_VAL, DM_VALIDATION_E_DATATYPE, DM_VALIDATION_E_ERROR, DM_VALIDATION_E_EXCESS_LEN, DM_VALIDATION_E_EXPR, DM_VALIDATION_E_FORMAT, DM_VALIDATION_E_OBJ_EXPR, DM_VALIDATION_E_OBJ_NULL_DATA, DM_VALIDATION_E_OBJ_RULES, DM_VALIDATION_E_USE_VALUE_ASST, errorCorruptedFile, errorDirectoryDoesNotExist, errorDirectoryIsActuallyAFile, errorFileDoesNotExist, errorFileIsActuallyADirectory, errorNoPermissionToCreateDirectory, errorNoPermissionToCreateFile, errorNoPermissionToDetectExistanceOfDirectory, errorNoPermissionToDetectExistanceOfFile, errorNoPermissionToOpenExistingFileWithWriteAccess, errorNoPermissionToOpenFileWithReadAccess, errorReadingFile, errorWritingToExistingFile, errorWritingToNewFile
-
Constructor Summary
ConstructorsConstructorDescriptionDfException
(int errorCode) Deprecated.Alphanumeric identifiers are now used instead of numeric error codesDfException
(int errorCode, String message) Deprecated.Alphanumeric identifiers are now used instead of numeric error codesDfException
(int errorCode, String arg1, String arg2, String arg3) Deprecated.Alphanumeric identifiers are now used instead of numeric error codesDfException
(com.documentum.fc.common.impl.MessageHelper messageHelper) DfException
(com.documentum.fc.common.impl.MessageHelper messageHelper, Throwable cause) DfException
(String message) DfException
(String message, Object[] arguments) DfException
(String message, Object[] arguments, Throwable cause) DfException
(String message, Throwable cause) DfException
(Throwable cause) DfException
(ResourceBundle bundle, int errorCode) Deprecated.Alphanumeric identifiers are now used instead of numeric error codesDfException
(ResourceBundle bundle, int errorCode, String arg1, String arg2, String arg3) Deprecated.Alphanumeric identifiers are now used instead of numeric error codes -
Method Summary
Modifier and TypeMethodDescriptionstatic DfException
appendException
(DfException exptHead, DfException e, int stopAfterNumOfErrors) Appends a DfException to the end of an exception chain.static DfException
Object[]
Returns the arguments for this Exception.final int
getCount()
Returns the number of exceptions chained to this exception (including this exception itself).final int
Deprecated.Alphanumeric identifiers are now used instead of numeric error codesReturns the error message associated with this exception.Returns the alphanumeric message identifier.final IDfException
Returns the next exception in the chain, that is, the exception which triggered this one.Returns the the IDfProperties interface to the object.Returns the Java stack trace as a String.final IDfException
Returns the last exception in the chain of exceptions.final String
Returns the name of the Java thread on which this exception was thrown.static DfException
static DfException
newAlreadyMaterializedException
(IDfId objectId) static DfException
newApiBadType
(IDfId componentId, String typeName) static DfException
newAspectMissingPropertyBag
(String aspectName, IDfId objId, String typeName) static DfException
newAuditTrailOutOfRangeException
(int valueIndex, String attributeName, int count) static DfException
newBadCacheTypeNameException
(String cacheTypeName) static DfException
newBadClassException
(String className, String baseClassName, Throwable cause) static DfException
newBadDataTypeException
(int dataType) static DfException
newBadDateException
(String value, String pattern) static DfException
newBadDocbaseScopeIdException
(long docbaseId) static DfException
newBadFlushArgException
(String flushType) static DfException
static DfException
newBadTypeException
(String typeName) static DfException
static DfException
newCannotDestroyAspect
(String aspectName) static DfException
newCantApplyException
(String methodName) static DfException
static DfException
newCantFetchInvalidId
(String objectId) static DfException
newCantWithOpenTranException
(String operationName) static DfException
newClassNotFoundException
(String className, Throwable cause) static DfException
newDecodingFailedException
(String tokenName, String tokenValue, Throwable cause) static DfException
newDeserializeFailedException
(String serializedValue, Throwable cause) static DfException
static DfException
static DfException
newFlushDDCacheBadKeyException
(String cacheKey) static DfException
static DfException
static DfException
static DfException
newIllegalSBOAccessException
(String sboName) static DfException
newInvalidAspectName
(String aspectName) static DfException
newInvalidDefaultValue
(String typeName, String attrName, String defaultValue) static DfException
newInvalidNewObjectException
(String typeName) static DfException
newInvalidTypeException
(String typeName, IDfId objectId, String requiredTypeName) static DfException
static DfException
newMultipleObjectsQualify
(String predicate, String docbaseName) static DfException
static DfException
static DfException
static DfException
newNoEventNameException
(String commandName) static DfException
newNoIdException
(String api) static DfException
newProxyInstantiateFailedException
(String className, Throwable cause) static DfException
newQueryFailException
(String dql, Throwable cause) static DfException
static DfException
newReplicaAspectGenerationFailed
(String className, Throwable cause) static DfException
static DfException
newSerializeFailedException
(Object object, Throwable cause) static DfException
newShareableTypeMismatchException
(String shareableTypeName) static DfException
static DfException
static DfException
newUnsupportedLoginTicketObjectVersionException
(int version) static DfException
newUpdateBadAttrException
(String attributeName) static DfException
newWrongCacheNameException
(String cacheName) static DfException
noLightweightParentTypeException
(String lwTypeName) static DfException
notShareableParentTypeException
(String lwTypeName) static IDfException
parseException
(String exceptionString) Turns a string returned by toStringForCOM into a DfException object.void
void
static void
registerResourceBundle
(ResourceBundle bundle) Registers a resource bundle containing messages used in exceptions.final void
setErrorCode
(int errorCode) Deprecated.Alphanumeric identifiers are now used instead of numeric error codesstatic void
setIncludeStackTraceInMsg
(boolean value) Deprecated.Use DfPreferences instead.final void
setMessage
(String message) Sets the error message for this exception.final void
setNextException
(DfException nextException) toString()
Returns a string encoding of the exception that can be used to transfer the exception across COM.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace
-
Constructor Details
-
DfException
public DfException() -
DfException
-
DfException
-
DfException
-
DfException
-
DfException
-
DfException
public DfException(com.documentum.fc.common.impl.MessageHelper messageHelper) -
DfException
-
DfException
public DfException(int errorCode) Deprecated.Alphanumeric identifiers are now used instead of numeric error codesConstructs a new instance using the default DFC resource bundle to find the message text. -
DfException
Deprecated.Alphanumeric identifiers are now used instead of numeric error codesConstructs a new instance using the given message text. -
DfException
Deprecated.Alphanumeric identifiers are now used instead of numeric error codesConstructs a new instance using the default DFC resource bundle to find the message text. This constructor will substitute the arguments arg1, arg2 and arg3 for all instances of the tokens {0}, {1}, and {2} in the error message, respectively. -
DfException
Deprecated.Alphanumeric identifiers are now used instead of numeric error codesConstructs a new instance using a specified resource bundle to find the message text.- Parameters:
errorCode
- the error code associated with this exception- See Also:
-
DfException
Deprecated.Alphanumeric identifiers are now used instead of numeric error codesConstructs a new instance using a specified resource bundle to find the message text. This constructor will substitute the arguments arg1, arg2 and arg3 for all instances of the tokens {0}, {1}, and {2} in the error message, respectively.
-
-
Method Details
-
newNoIdException
-
newBadIdException
-
newBadDateException
-
newBadDocbaseScopeIdException
-
newBadTypeException
-
newBadDataTypeException
-
newApiBadType
-
newBadClassException
public static DfException newBadClassException(String className, String baseClassName, Throwable cause) -
newClassNotFoundException
-
newProxyInstantiateFailedException
-
newReplicaAspectGenerationFailed
-
newIllegalSBOAccessException
-
newCantApplyException
-
newCantFetchInvalidId
-
newSerializeFailedException
-
newDeserializeFailedException
-
newMultipleObjectsQualify
-
newIllegalDateFormatException
-
newMaterializationOptionMismatchException
-
newTransactionActiveException
-
newTransactionLostException
-
newDynamicGroupUpdateException
-
newCantWithOpenTranException
-
newBadFlushArgException
-
newFlushDDCacheNoKeyException
-
newFlushDDCacheBadKeyException
-
newFlushRegistryCacheNoKeyException
-
newInvalidTypeException
public static DfException newInvalidTypeException(String typeName, IDfId objectId, String requiredTypeName) -
newInvalidNewObjectException
-
newInvalidAspectName
-
newCannotDestroyAspect
-
newAlreadyMaterializedException
-
newQueryFailException
-
newQuerySessionClosedException
-
newAspectMissingPropertyBag
public static DfException newAspectMissingPropertyBag(String aspectName, IDfId objId, String typeName) -
newInvalidDefaultValue
public static DfException newInvalidDefaultValue(String typeName, String attrName, String defaultValue) -
newRetentionOnParkedContentDisabled
-
newAuditTrailOutOfRangeException
public static DfException newAuditTrailOutOfRangeException(int valueIndex, String attributeName, int count) -
newNoEventNameException
-
newDecodingFailedException
public static DfException newDecodingFailedException(String tokenName, String tokenValue, Throwable cause) -
newUnsupportedLoginTicketObjectVersionException
-
newNoCacheNameException
-
newWrongCacheNameException
-
newUpdateBadAttrException
-
newFailedPolicyUpdateException
-
newCantExportDirtyObjectException
-
newNoCacheTypeNameException
-
newBadCacheTypeNameException
-
newNoCacheKeyException
-
noLightweightParentTypeException
-
materializedLightObjectException
-
getMessage
Description copied from interface:IDfException
Returns the error message associated with this exception.- Specified by:
getMessage
in interfaceIDfException
- Overrides:
getMessage
in classThrowable
-
getMessageId
Description copied from interface:IDfException
Returns the alphanumeric message identifier.- Specified by:
getMessageId
in interfaceIDfException
-
getArguments
Description copied from interface:IDfException
Returns the arguments for this Exception.- Specified by:
getArguments
in interfaceIDfException
-
setMessage
Description copied from interface:IDfException
Sets the error message for this exception.- Specified by:
setMessage
in interfaceIDfException
- Parameters:
message
- the localized error message.
-
printStackTrace
- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
- Overrides:
printStackTrace
in classThrowable
-
getErrorCode
public final int getErrorCode()Deprecated.Alphanumeric identifiers are now used instead of numeric error codesDescription copied from interface:IDfException
Returns the error code associated with this exception object. If no error code has been set, it will have the value IDfException.UNDEFINED.- Specified by:
getErrorCode
in interfaceIDfException
-
setErrorCode
public final void setErrorCode(int errorCode) Deprecated.Alphanumeric identifiers are now used instead of numeric error codesDescription copied from interface:IDfException
Sets the error code for the given exception.- Specified by:
setErrorCode
in interfaceIDfException
- Parameters:
errorCode
- an application-defined error code.
-
getThreadInfo
Description copied from interface:IDfException
Returns the name of the Java thread on which this exception was thrown.- Specified by:
getThreadInfo
in interfaceIDfException
-
getCount
public final int getCount()Description copied from interface:IDfException
Returns the number of exceptions chained to this exception (including this exception itself).- Specified by:
getCount
in interfaceIDfException
-
getNextException
Description copied from interface:IDfException
Returns the next exception in the chain, that is, the exception which triggered this one. This method allows a handler routine to iterate through the chain of exceptions that resulted in the one that was caught.- Specified by:
getNextException
in interfaceIDfException
-
setNextException
-
getTailException
Description copied from interface:IDfException
Returns the last exception in the chain of exceptions. If this is the only exception, this method returnsnull
.- Specified by:
getTailException
in interfaceIDfException
-
getProperties
Description copied from interface:IDfException
Returns the the IDfProperties interface to the object. Subclasses of DfException may use this to store and expose additional information about the exception.- Specified by:
getProperties
in interfaceIDfException
-
getStackTraceAsString
Description copied from interface:IDfException
Returns the Java stack trace as a String. This is useful for debugging purposes.- Specified by:
getStackTraceAsString
in interfaceIDfException
-
toString
-
toStringForCOM
Returns a string encoding of the exception that can be used to transfer the exception across COM. The COM error string can then be turned back into an exception object by calling parseException() on DfClientX. In a VB program that provides no error handling routines, the string returned from this method will be displayed in a message box in the event that an exception occurs. -
registerResourceBundle
Registers a resource bundle containing messages used in exceptions. This new resource bundle is added to the list of bundles that are searched whenever an exception messages needs to be translated. Since exceptions are often logged, the resource bundle is also automatically registered withDfLogger
. -
appendException
public static DfException appendException(DfException exptHead, DfException e, int stopAfterNumOfErrors) throws DfException Appends a DfException to the end of an exception chain.- Throws:
DfException
-
parseException
Turns a string returned by toStringForCOM into a DfException object. Hopefully it will be the same one from which the string came. -
setIncludeStackTraceInMsg
public static void setIncludeStackTraceInMsg(boolean value) Deprecated.Use DfPreferences instead.Controls a special debugging option for including a stack trace with the message text. -
convert
-