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 DfExceptionappendException(DfException exptHead, DfException e, int stopAfterNumOfErrors) Appends a DfException to the end of an exception chain.static DfExceptionObject[]Returns the arguments for this Exception.final intgetCount()Returns the number of exceptions chained to this exception (including this exception itself).final intDeprecated.Alphanumeric identifiers are now used instead of numeric error codesReturns the error message associated with this exception.Returns the alphanumeric message identifier.final IDfExceptionReturns 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 IDfExceptionReturns the last exception in the chain of exceptions.final StringReturns the name of the Java thread on which this exception was thrown.static DfExceptionstatic DfExceptionnewAlreadyMaterializedException(IDfId objectId) static DfExceptionnewApiBadType(IDfId componentId, String typeName) static DfExceptionnewAspectMissingPropertyBag(String aspectName, IDfId objId, String typeName) static DfExceptionnewAuditTrailOutOfRangeException(int valueIndex, String attributeName, int count) static DfExceptionnewBadCacheTypeNameException(String cacheTypeName) static DfExceptionnewBadClassException(String className, String baseClassName, Throwable cause) static DfExceptionnewBadDataTypeException(int dataType) static DfExceptionnewBadDateException(String value, String pattern) static DfExceptionnewBadDocbaseScopeIdException(long docbaseId) static DfExceptionnewBadFlushArgException(String flushType) static DfExceptionstatic DfExceptionnewBadTypeException(String typeName) static DfExceptionstatic DfExceptionnewCannotDestroyAspect(String aspectName) static DfExceptionnewCantApplyException(String methodName) static DfExceptionstatic DfExceptionnewCantFetchInvalidId(String objectId) static DfExceptionnewCantWithOpenTranException(String operationName) static DfExceptionnewClassNotFoundException(String className, Throwable cause) static DfExceptionnewDecodingFailedException(String tokenName, String tokenValue, Throwable cause) static DfExceptionnewDeserializeFailedException(String serializedValue, Throwable cause) static DfExceptionstatic DfExceptionstatic DfExceptionnewFlushDDCacheBadKeyException(String cacheKey) static DfExceptionstatic DfExceptionstatic DfExceptionstatic DfExceptionnewIllegalSBOAccessException(String sboName) static DfExceptionnewInvalidAspectName(String aspectName) static DfExceptionnewInvalidDefaultValue(String typeName, String attrName, String defaultValue) static DfExceptionnewInvalidNewObjectException(String typeName) static DfExceptionnewInvalidTypeException(String typeName, IDfId objectId, String requiredTypeName) static DfExceptionstatic DfExceptionnewMultipleObjectsQualify(String predicate, String docbaseName) static DfExceptionstatic DfExceptionstatic DfExceptionstatic DfExceptionnewNoEventNameException(String commandName) static DfExceptionnewNoIdException(String api) static DfExceptionnewProxyInstantiateFailedException(String className, Throwable cause) static DfExceptionnewQueryFailException(String dql, Throwable cause) static DfExceptionstatic DfExceptionnewReplicaAspectGenerationFailed(String className, Throwable cause) static DfExceptionstatic DfExceptionnewSerializeFailedException(Object object, Throwable cause) static DfExceptionnewShareableTypeMismatchException(String shareableTypeName) static DfExceptionstatic DfExceptionstatic DfExceptionnewUnsupportedLoginTicketObjectVersionException(int version) static DfExceptionnewUpdateBadAttrException(String attributeName) static DfExceptionnewWrongCacheNameException(String cacheName) static DfExceptionnoLightweightParentTypeException(String lwTypeName) static DfExceptionnotShareableParentTypeException(String lwTypeName) static IDfExceptionparseException(String exceptionString) Turns a string returned by toStringForCOM into a DfException object.voidvoidstatic voidregisterResourceBundle(ResourceBundle bundle) Registers a resource bundle containing messages used in exceptions.final voidsetErrorCode(int errorCode) Deprecated.Alphanumeric identifiers are now used instead of numeric error codesstatic voidsetIncludeStackTraceInMsg(boolean value) Deprecated.Use DfPreferences instead.final voidsetMessage(String message) Sets the error message for this exception.final voidsetNextException(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:IDfExceptionReturns the error message associated with this exception.- Specified by:
getMessagein interfaceIDfException- Overrides:
getMessagein classThrowable
-
getMessageId
Description copied from interface:IDfExceptionReturns the alphanumeric message identifier.- Specified by:
getMessageIdin interfaceIDfException
-
getArguments
Description copied from interface:IDfExceptionReturns the arguments for this Exception.- Specified by:
getArgumentsin interfaceIDfException
-
setMessage
Description copied from interface:IDfExceptionSets the error message for this exception.- Specified by:
setMessagein interfaceIDfException- Parameters:
message- the localized error message.
-
printStackTrace
- Overrides:
printStackTracein classThrowable
-
printStackTrace
- Overrides:
printStackTracein classThrowable
-
getErrorCode
public final int getErrorCode()Deprecated.Alphanumeric identifiers are now used instead of numeric error codesDescription copied from interface:IDfExceptionReturns the error code associated with this exception object. If no error code has been set, it will have the value IDfException.UNDEFINED.- Specified by:
getErrorCodein interfaceIDfException
-
setErrorCode
public final void setErrorCode(int errorCode) Deprecated.Alphanumeric identifiers are now used instead of numeric error codesDescription copied from interface:IDfExceptionSets the error code for the given exception.- Specified by:
setErrorCodein interfaceIDfException- Parameters:
errorCode- an application-defined error code.
-
getThreadInfo
Description copied from interface:IDfExceptionReturns the name of the Java thread on which this exception was thrown.- Specified by:
getThreadInfoin interfaceIDfException
-
getCount
public final int getCount()Description copied from interface:IDfExceptionReturns the number of exceptions chained to this exception (including this exception itself).- Specified by:
getCountin interfaceIDfException
-
getNextException
Description copied from interface:IDfExceptionReturns 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:
getNextExceptionin interfaceIDfException
-
setNextException
-
getTailException
Description copied from interface:IDfExceptionReturns the last exception in the chain of exceptions. If this is the only exception, this method returnsnull.- Specified by:
getTailExceptionin interfaceIDfException
-
getProperties
Description copied from interface:IDfExceptionReturns the the IDfProperties interface to the object. Subclasses of DfException may use this to store and expose additional information about the exception.- Specified by:
getPropertiesin interfaceIDfException
-
getStackTraceAsString
Description copied from interface:IDfExceptionReturns the Java stack trace as a String. This is useful for debugging purposes.- Specified by:
getStackTraceAsStringin 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
-