exceptionmanager.h
Go to the documentation of this file.
1 #ifndef DNAI_EXEPTIONS_EXEPTION_MANAGER_H
2 #define DNAI_EXEPTIONS_EXEPTION_MANAGER_H
3 
4 #include <QString>
5 #include <QDebug>
6 #include "exception.h"
7 
8 namespace dnai
9 {
10  namespace exceptions
11  {
13  {
14  public:
19  static void throwException(const Exception &exception)
20  {
21  try
22  {
23  throw exception;
24  }
25  catch (const Exception& error)
26  {
27  qDebug() << error.what();
28  //TODO ADD CALL TO VIEW POPUP
29  }
30  }
31  };
32 
33 
34 
35  }
36 }
37 
38 #endif //DNAI_EXEPTIONS_EXEPTION_MANAGER_H
Definition: exceptionmanager.h:12
Base class for DNAI Exception.
Definition: exception.h:12
Definition: api.h:13
static void throwException(const Exception &exception)
Allow to output error in log and display it in a dialog box.
Definition: exceptionmanager.h:19