19 #ifndef ERROR_HANDLER_H 20 #define ERROR_HANDLER_H 34 void setCurrentError(
const QString pClassName,
const QString pMethodName,
const QString pErrorString,
const bool pIsLastError);
44 #endif // ERROR_HANDLER_H QVector< QString > mClassName
List of classes mapping the path taken by the error.
Definition: ErrorHandler.h:38
QVector< QString > mErrorString
List of error descriptions caused by the error's path throughout the member classes.
Definition: ErrorHandler.h:40
void setCurrentError(const QString pClassName, const QString pMethodName, const QString pErrorString, const bool pIsLastError)
Store the error that currently occured.
Definition: ErrorHandler.cpp:44
QVector< QString > mMethodName
List of methods mapping the path taken by the error.
Definition: ErrorHandler.h:39
Class for handling all the errors that occur in the Lpr Control library.
Definition: ErrorHandler.h:27
ErrorHandler()
ErrorHandler constructor.
Definition: ErrorHandler.cpp:22
bool mResetOnNextError
When True, the next call to setCurrentError will reset the mClassName, mMethodName, mErrorString QVectors.
Definition: ErrorHandler.h:41
QString getLastError()
Get the last error that occured.
Definition: ErrorHandler.cpp:27
~ErrorHandler()
ErrorHandler destructor.
Definition: ErrorHandler.h:32