22 #include <QStandardItemModel>
51 std::unique_ptr<Ui::ExceptionList>
ui_;
52 std::unique_ptr<QStandardItemModel>
model_;
56 template<
typename EXCEPTION,
typename F>
61 }
catch(EXCEPTION& _e) {
void clear()
Clear list of exceptions.
Definition: ExceptionList.cpp:50
ExceptionList(QWidget *=nullptr)
Definition: ExceptionList.cpp:26
std::unique_ptr< Ui::ExceptionList > ui_
Definition: ExceptionList.h:51
~ExceptionList()
Definition: ExceptionList.cpp:34
int exceptionCount() const
Number of exceptions in list.
Definition: ExceptionList.cpp:55
void setupModel()
Definition: ExceptionList.cpp:59
A list of all exceptions occured during a process.
Definition: ExceptionList.h:31
Base class for all exception. Throws a message with QString type.
Definition: exception.h:29
void addException(Exception const &)
Add exception to list.
Definition: ExceptionList.cpp:36
std::unique_ptr< QStandardItemModel > model_
Definition: ExceptionList.h:52
void tryWithExceptionList(F f)
Definition: ExceptionList.h:57