Class for handling all the errors that occur in the Lpr Control library.
More...
#include "ErrorHandler.h"
ErrorHandler::ErrorHandler |
( |
| ) |
|
ErrorHandler::~ErrorHandler |
( |
| ) |
|
|
inline |
bool ErrorHandler::getLastError |
( |
| ) |
|
Returns the last error in the format: "SourceErrorClass::SourceErrorMethod --> SecondAffectedMemberClass::SecondAffectedMethod --> ... --> Error description at the source class". An example output is as follows: "Control::initialize --> "Kinematics::initialize" --> "Unable to initialize kinematics class."
- Returns
- String representing the last error that occured.
void ErrorHandler::setCurrentError |
( |
const QString |
pClassName, |
|
|
const QString |
pMethodName, |
|
|
const QString |
pErrorString, |
|
|
const bool |
pIsLastError |
|
) |
| |
Stores all the details of the current error in the member QVectors, depending on the class ID.
- Parameters
-
[in] | pClassID | Class ID within which the error occured (should be filled in by parameter definitions found in ClassID. |
[in] | pClassName | List of class names, see mClassName. |
[in] | pMethodName | List of method names, see mMethodName. |
[in] | pErrorString | List of error description strings, see mErrorString. |
[in] | pErrorSource | If true then this is the source error and mClassName, mMethodName, mErrorString member variables will all be reset. |
- See also
- getLastError(), ClassID, mClassName, mMethodName, mErrorString
QVector<QString> ErrorHandler::mClassName |
|
protected |
QVector<QString> ErrorHandler::mErrorString |
|
protected |
QVector<QString> ErrorHandler::mMethodName |
|
protected |
bool ErrorHandler::mResetOnNextError |
|
protected |
The documentation for this class was generated from the following files: