Class CCResultException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ibm.debug.pdt.codecoverage.core.results.CCAbstractException
com.ibm.debug.pdt.codecoverage.core.results.CCResultException
- All Implemented Interfaces:
Serializable
Represents that a problem occurred during import
The exception or exceptions that were encountered can be retrieved using
CCAbstractException.getExceptions()
Each CCImportException will contain information about why and what failed to import
Results that are returned with the exception may not be complete- Since:
- 4.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns any additional messages that were generated during the import/export/compare These messages may help determine the reason for this exception The messages are encoded and callers can useCCMessageUtilitiesto decode them in the language they needReturns the incomplete result It is up to the receiver to determine if the associated exceptions make this result invalid SeeICCResult.getStatus()voidThe merged results gathered with problems is added to this exception so that the caller can obtain the results and determine if they are usableMethods inherited from class com.ibm.debug.pdt.codecoverage.core.results.CCAbstractException
addException, getEncodedMessage, getExceptions, isEmpty, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
CCResultException
public CCResultException() -
CCResultException
-
-
Method Details
-
setResult
The merged results gathered with problems is added to this exception so that the caller can obtain the results and determine if they are usable- Parameters:
result-ICCResultwith problems
-
getResult
Returns the incomplete result It is up to the receiver to determine if the associated exceptions make this result invalid SeeICCResult.getStatus()- Returns:
- the merged results that were processed.
NOTE: the returned results may be partial and incomplete.
The caller can use the list of exceptions
CCAbstractException.getExceptions()to determine if the results are worth using or what could be removed to make the result valid
-
getMessages
Description copied from class:CCAbstractExceptionReturns any additional messages that were generated during the import/export/compare These messages may help determine the reason for this exception The messages are encoded and callers can useCCMessageUtilitiesto decode them in the language they need- Overrides:
getMessagesin classCCAbstractException- Returns:
- array of additional message text or an empty array
-