forked from jfnavarro/st_viewer
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathError.h
More file actions
executable file
·42 lines (30 loc) · 841 Bytes
/
Error.h
File metadata and controls
executable file
·42 lines (30 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
Copyright (C) 2012 Spatial Transcriptomics AB,
read LICENSE for licensing terms.
Contact : Jose Fernandez Navarro <jose.fernandez.navarro@scilifelab.se>
*/
#ifndef ERROR_H
#define ERROR_H
#include <QObject>
#include <QString>
//this abstract class is the base class for errors,
//it contains different information (name and description)
class Error : public QObject
{
Q_OBJECT
public:
explicit Error(QObject* parent = 0);
Error(const QString& name,
const QString& description = QString(),
QObject* parent = 0);
virtual ~Error();
const QString name() const;
const QString description() const;
protected:
void name(const QString& name);
void description(const QString& description);
private:
QString m_name;
QString m_description;
};
#endif // ERROR_H //