• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

Software development tool for distributed control systems

  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Product
    • Design UI
    • Develop
    • Analyze and test
    • Deploy
    • Framework and toolbox
    • Compatibility
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • Framework - XMLParser
  • IErrorReporter

IErrorReporter Class

The IErrorReporter is an interface for error-reporting. More...

Header: #include <IErrorReporter>
Inherited By:

ErrorReporter

  • List of all members, including inherited members

Public Types

enum IssueLevel { eUNKNOWN, eWARNING, eERROR, eINFO }

Public Functions

virtual ~IErrorReporter()
virtual void AddIssue(const std::string &issuemessage, IssueLevel level, const std::string &filename = std::string(), int line = -1) = 0
virtual void ClearLastErrorMessage() = 0
virtual const char *GetLastErrorMessage() const = 0

Protected Functions

virtual std::string GetLevelString(IssueLevel level) = 0

Detailed Description

The IErrorReporter is an interface for error-reporting.

See also ErrorReporter.

Member Type Documentation

enum IErrorReporter::IssueLevel

The level (severity) of an issue.

ConstantValueDescription
IErrorReporter::eUNKNOWN0Unknown issue level (signifies some kind of usage error)
IErrorReporter::eWARNING1Something is not quite right, but it is not a show-stopper
IErrorReporter::eERROR2An unrecoverable problem occurred
IErrorReporter::eINFO3For information only

Member Function Documentation

[virtual] IErrorReporter::~IErrorReporter()

Destructs the interface.

[pure virtual] void IErrorReporter::AddIssue(const std::string &issuemessage, IssueLevel level, const std::string &filename = std::string(), int line = -1)

Generates an issue string in the form <filename>:<line>: <level string>: <issuemessage>.

See also GetLastErrorMessage().

[pure virtual] void IErrorReporter::ClearLastErrorMessage()

Clears the error message.

[pure virtual] const char *IErrorReporter::GetLastErrorMessage() const

Gets the last error-message that is set in the reporter instance.

[pure virtual protected] std::string IErrorReporter::GetLevelString(IssueLevel level)

Returns the string that corresponds to level.

Returns WARNING for eWarning, OK for eINFO and ERROR otherwise.

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

Follow CDP

    © Copyright 2021 CDP Technologies. Privacy and cookie policy.

    Return to top