-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTDBExceptions.h
65 lines (53 loc) · 1.23 KB
/
TDBExceptions.h
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef TDBEXCEPTIONS_H
#define TDBEXCEPTIONS_H
#include <QString>
// included by TDBApplication.h
enum trigramme_errors
{
no_error,
trigramme_existant,
trigramme_inconnu
};
class TDBException
{
public:
virtual QString what() {return QString("Exception inconnue");}
TDBException();
protected:
};
class TDBTrigrammeException : public TDBException
{
protected:
QString trig;
public:
TDBTrigrammeException(QString tri);
virtual QString what();
QString trigramme() {return trig;}
};
class TDBTrigrammeExistantException : public TDBTrigrammeException
{
public:
TDBTrigrammeExistantException(QString tri);
virtual QString what();
};
class TDBTrigrammeInconnuException : public TDBTrigrammeException
{
public:
TDBTrigrammeInconnuException(QString tri);
virtual QString what();
};
class TDBTrigrammeInvalideException : public TDBTrigrammeException
{
public:
TDBTrigrammeInvalideException(QString tri);
virtual QString what();
};
class TDBAuthException {
};
class TDBTrigrammeMailException : public TDBTrigrammeException
{
public:
TDBTrigrammeMailException(QString tri);
virtual QString what();
};
#endif