00001 #include "businessrule2exception.h" 00002 00003 namespace domain 00004 { 00005 00006 BusinessRule2Exception::BusinessRule2Exception(const QString& message, 00007 const QList<const domain::Task*>& badSubTasks, 00008 const QList<const domain::Task*>& badSuperTasks) : 00009 StringException(message), subTasks(badSubTasks), 00010 superTasks(badSuperTasks) 00011 { 00012 } 00013 00014 BusinessRule2Exception::~BusinessRule2Exception() throw() 00015 { 00016 } 00017 00018 QList<const domain::Task*> BusinessRule2Exception::badSubTasks() const 00019 { 00020 return subTasks; 00021 } 00022 00023 QList< const domain::Task*> BusinessRule2Exception::badSuperTasks() const 00024 { 00025 return superTasks; 00026 } 00027 00028 }