From 8e9cad0753457ce3d245a626fb4ad693e5701703 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sun, 9 Nov 2014 12:06:54 +0100 Subject: Add error management. Protect sort node after scalar result node. --- node/executionnode.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'node/executionnode.h') diff --git a/node/executionnode.h b/node/executionnode.h index 59308ff..b83a6f1 100644 --- a/node/executionnode.h +++ b/node/executionnode.h @@ -6,6 +6,7 @@ class ExecutionNode { public: + enum ERROR_CODE {NO_ERROR,DIE_RESULT_EXPECTED,BAD_SYNTAXE}; ExecutionNode(); virtual ~ExecutionNode(); virtual void run(ExecutionNode* previous = NULL)=0; @@ -14,9 +15,11 @@ public: ExecutionNode* getNextNode(); virtual QString toString()const=0; virtual qint64 getPriority() const=0; + virtual QList getErrorList(); protected: Result* m_result; ExecutionNode* m_nextNode; + QList m_errors; }; #endif // EXECUTIONNODE_H -- cgit v1.2.3-70-g09d2