This class is used as a base class for several Mascot Parser classes. More...
#include <ms_errors.hpp>
Public Member Functions | |
ms_errors () | |
Default constructor. | |
~ms_errors () | |
Destructor. | |
void | appendErrors (const ms_errors &src) |
Copies all errors from another instance and appends them at the end of own list. | |
void | clearAllErrors () |
Remove all errors from the current list of errors. | |
void | copyFrom (const ms_errors *right) |
Use this member to make a copy of another instance. | |
const ms_errs * | getErrorHandler () const |
Retrive the error object using this function to get access to all errors and error parameters. | |
int | getLastError () const |
Return the error description of the last error that occurred. | |
std::string | getLastErrorString () const |
Return the error description of the last error that occurred. | |
bool | isValid () const |
Call this function to determine if there have been any errors. | |
This class is used as a base class for several Mascot Parser classes.
void appendErrors | ( | const ms_errors & | src | ) |
Copies all errors from another instance and appends them at the end of own list.
src | The object to copy the errors across from. See Maintaining object references: two rules of thumb. |
void clearAllErrors | ( | ) |
Remove all errors from the current list of errors.
The list of 'errors' can include fatal errors, warning messages, information messages and different levels of debugging messages.
All messages are accumulated into a list in this object, until clearAllErrors() is called.
See Error Handling.
void copyFrom | ( | const ms_errors * | right | ) |
Use this member to make a copy of another instance.
right | is the source to initialise from |
const ms_errs * getErrorHandler | ( | ) | const |
Retrive the error object using this function to get access to all errors and error parameters.
See Error Handling.
int getLastError | ( | ) | const |
Return the error description of the last error that occurred.
All errors are accumulated into a list in this object, until clearAllErrors() is called. This function returns the last error that occurred.
See Error Handling.
std::string getLastErrorString | ( | ) | const |
Return the error description of the last error that occurred.
All errors are accumulated into a list in this object, until clearAllErrors() is called. This function returns the last error that occurred.
See Error Handling.
bool isValid | ( | ) | const |
Call this function to determine if there have been any errors.
This will return true unless there have been any fatal errors.
See Error Handling.