Class CCAbstractException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ibm.debug.pdt.codecoverage.core.results.CCAbstractException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CCExportException, CCFileChangedException, CCIdenticalFilesException, CCImportException, CCResultException, CCSourceFileNotFoundException

public abstract class CCAbstractException extends Exception
Implementation of a CC exception that supports encoded messages use Throwable.getMessage() to retrieve the message full text use getEncodedMessage() to retrieve the message in encoded form
Since:
4.0
See Also:
  • Constructor Details

    • CCAbstractException

      public CCAbstractException(String messageKey)
    • CCAbstractException

      public CCAbstractException(String messageKey, String parm1)
    • CCAbstractException

      public CCAbstractException(String messageKey, String parm1, String parm2)
    • CCAbstractException

      public CCAbstractException(Throwable cause)
  • Method Details

    • getEncodedMessage

      public String getEncodedMessage()
    • addException

      public void addException(CCAbstractException e)
      Parameters:
      e - underlying or related exception that can give more information on the cause of the error
      Since:
      6.0
    • getExceptions

      public CCAbstractException[] getExceptions()
      Returns:
      array of exceptions or an empty array
      Since:
      6.0
    • isEmpty

      public boolean isEmpty()
      Returns true if there are no exceptions added
      Returns:
      true if no exceptions are available
      Since:
      4.1
    • getMessages

      public String[] getMessages()
      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 use CCMessageUtilities to decode them in the language they need
      Returns:
      array of additional message text or an empty array
      Since:
      6.0
    • toString

      public String toString()
      Overrides:
      toString in class Throwable