-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathException.h
98 lines (79 loc) · 1.9 KB
/
Exception.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#ifndef _Exception_H_
#define _Exception_H_
#include <string>
// base class for different exceptions
class WatopolyException {
public:
std::string message;
WatopolyException(std::string m);
};
class NoOwner : public WatopolyException {
public:
NoOwner(std::string m);
};
class NoEnoughMoney : public WatopolyException {
public:
int needAmount;
std::string playerName;
std::string receiver;
NoEnoughMoney(std::string m, int a, std::string playerName, std::string receiver);
};
class giveMoneyAlert : public WatopolyException {
public:
giveMoneyAlert(std::string m);
};
class NoEnoughCup : public WatopolyException {
public:
NoEnoughCup(std::string m);
};
class TuitionException : public WatopolyException {
public:
TuitionException(std::string m);
};
class TimHortonsException : public WatopolyException {
public:
TimHortonsException(std::string m);
};
class getRimCup : public WatopolyException {
public:
getRimCup(std::string m);
};
class SLCException : public WatopolyException {
public:
int steps;
SLCException(std::string m, int s);
};
class GooseException : public WatopolyException {
public:
GooseException(std::string m);
};
class NeedlesHallException : public WatopolyException {
public:
int amount;
NeedlesHallException(std::string m, int a);
};
class ImprovementException : public WatopolyException {
public:
ImprovementException(std::string m);
};
class WrongBuildingException : public WatopolyException {
public:
WrongBuildingException(std::string m);
};
class WrongPlayerException : public WatopolyException {
public:
WrongPlayerException(std::string m);
};
class MortgageException : public WatopolyException {
public:
MortgageException(std::string m);
};
class hasWon : public WatopolyException {
public:
hasWon(std::string m);
};
class bankruptException : public WatopolyException {
public:
bankruptException(std::string m);
};
#endif