/***************************************************************************
 *                          Zanoza Modeler v2.x                            *
 *      This is unpublished propietary source code of Zanoza Software.     *
 *      The copyright notice does not evidence any actual or intended      *
 *                    publication of such source code.                     *
 *                                                                         *
 *                Copyright (c) 2002-2008 Zanoza Software.                 *
 *                                                                         *
 *                        All rights reserved.                             *
 ***************************************************************************
 *--------------------------------------------------------------------------
 * @author:   Oleg Melashenko
 *--------------------------------------------------------------------------
 * @purpose:  Declaration of the class IErrorInfo
 *   Error info support interface
 *--------------------------------------------------------------------------
 * @created: Wednesday, September 25, 2002 23:00:01
 */

#if !defined(IErrorInfo_h_included)
#define IErrorInfo_h_included
//forward declaration of this class might require
namespace core
{ class IErrorInfo; };
#include <zmodeler.h>
#include <core/coreTypes.h>
#include <core/events/eventsTypes.h>

namespace core
{
  
  class IErrorInfo : public ZUnknown
  {
  public:
    /* Resets collected error info. */
    virtual ZRESULT resetError(void)=0;
    /* Error reporting function. */
    virtual ZRESULT reportError(core::IErrorInfo* pPrevError, const ZString strDesc)=0;
    virtual ZRESULT hasErrors(void) const=0;
    /* Provides description for collected errors */
    virtual ZRESULT getErrorDescription(ZString& strDesc)=0;
    virtual ZRESULT getPreviouseError(core::IErrorInfo** ppError)=0;
  
  };//class IErrorInfo
};//core

#endif
