• 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
  • ErrorReporter

ErrorReporter Class

The ErrorReporter handles reporting and retrieval of an error string. More...

Header: #include <ErrorReporter>
Inherits: IErrorReporter
  • List of all members, including inherited members

Public Functions

virtual ~ErrorReporter()

Reimplemented Public Functions

virtual void AddIssue(const std::string &issuemessage, IssueLevel level, const std::string &filename = std::string(), int line = -1)
virtual void ClearLastErrorMessage()
virtual const char *GetLastErrorMessage() const
  • 3 public functions inherited from IErrorReporter

Reimplemented Protected Functions

virtual std::string GetLevelString(IssueLevel level)
  • 1 protected function inherited from IErrorReporter

Detailed Description

The ErrorReporter handles reporting and retrieval of an error string.

Member Function Documentation

[virtual] ErrorReporter::~ErrorReporter()

Destroys the instance of ErrorReporter. The destructor is virtual.

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

Reimplemented from IErrorReporter::AddIssue().

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

[virtual] void ErrorReporter::ClearLastErrorMessage()

Reimplemented from IErrorReporter::ClearLastErrorMessage().

Clears the error message.

[virtual] const char *ErrorReporter::GetLastErrorMessage() const

Reimplemented from IErrorReporter::GetLastErrorMessage().

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

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

Reimplemented from IErrorReporter::GetLevelString().

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