IErrorReporter Class
The IErrorReporter is an interface for error-reporting. More...
Header: | #include <IErrorReporter> |
Inherited By: |
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.
Constant | Value | Description |
---|---|---|
IErrorReporter::eUNKNOWN | 0 | Unknown issue level (signifies some kind of usage error) |
IErrorReporter::eWARNING | 1 | Something is not quite right, but it is not a show-stopper |
IErrorReporter::eERROR | 2 | An unrecoverable problem occurred |
IErrorReporter::eINFO | 3 | For 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.
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.