Class CCResultException

All Implemented Interfaces:
Serializable

public class CCResultException extends CCAbstractException
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 Details

    • CCResultException

      public CCResultException()
    • CCResultException

      public CCResultException(Exception e)
  • Method Details

    • setResult

      public void setResult(ICCResult result)
      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 - ICCResult with problems
    • getResult

      public ICCResult getResult()
      Returns the incomplete result It is up to the receiver to determine if the associated exceptions make this result invalid See ICCResult.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

      public String[] getMessages()
      Description copied from class: CCAbstractException
      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
      Overrides:
      getMessages in class CCAbstractException
      Returns:
      array of additional message text or an empty array