00001 #ifndef BUSINESSRULE2EXCEPTION_H 00002 #define BUSINESSRULE2EXCEPTION_H 00003 00004 #include "tools/stringexception.h" 00005 00006 #include <domain/task.h> 00007 00008 namespace domain 00009 { 00010 00011 class DOMAIN_EXPORT BusinessRule2Exception : public tools::StringException 00012 { 00013 public: 00014 00015 BusinessRule2Exception(const QString& message, 00016 const QList<const domain::Task*>& badSubTasks, 00017 const QList<const domain::Task*>& badSuperTasks); 00018 ~BusinessRule2Exception() throw(); 00019 00020 QList<const domain::Task*> badSubTasks() const; 00021 QList<const domain::Task*> badSuperTasks() const; 00022 00023 private: 00024 00025 QList<const domain::Task*> subTasks; 00026 QList<const domain::Task*> superTasks; 00027 }; 00028 00029 } 00030 00031 #endif