@@ -27,7 +27,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
27
27
class BaseException : public std ::exception
28
28
{
29
29
public:
30
- BaseException (const std::string s) throw ()
30
+ BaseException (const std::string & s) throw ()
31
31
{
32
32
m_s = s;
33
33
}
@@ -42,78 +42,78 @@ class BaseException : public std::exception
42
42
43
43
class AsyncQueuedException : public BaseException {
44
44
public:
45
- AsyncQueuedException (std::string s): BaseException(s) {}
45
+ AsyncQueuedException (const std::string & s): BaseException(s) {}
46
46
};
47
47
48
48
class NotImplementedException : public BaseException {
49
49
public:
50
- NotImplementedException (std::string s): BaseException(s) {}
50
+ NotImplementedException (const std::string & s): BaseException(s) {}
51
51
};
52
52
53
53
class AlreadyExistsException : public BaseException {
54
54
public:
55
- AlreadyExistsException (std::string s): BaseException(s) {}
55
+ AlreadyExistsException (const std::string & s): BaseException(s) {}
56
56
};
57
57
58
58
class VersionMismatchException : public BaseException {
59
59
public:
60
- VersionMismatchException (std::string s): BaseException(s) {}
60
+ VersionMismatchException (const std::string & s): BaseException(s) {}
61
61
};
62
62
63
63
class FileNotGoodException : public BaseException {
64
64
public:
65
- FileNotGoodException (std::string s): BaseException(s) {}
65
+ FileNotGoodException (const std::string & s): BaseException(s) {}
66
66
};
67
67
68
68
class SerializationError : public BaseException {
69
69
public:
70
- SerializationError (std::string s): BaseException(s) {}
70
+ SerializationError (const std::string & s): BaseException(s) {}
71
71
};
72
72
73
73
class LoadError : public BaseException {
74
74
public:
75
- LoadError (std::string s): BaseException(s) {}
75
+ LoadError (const std::string & s): BaseException(s) {}
76
76
};
77
77
78
78
class ContainerFullException : public BaseException {
79
79
public:
80
- ContainerFullException (std::string s): BaseException(s) {}
80
+ ContainerFullException (const std::string & s): BaseException(s) {}
81
81
};
82
82
83
83
class SettingNotFoundException : public BaseException {
84
84
public:
85
- SettingNotFoundException (std::string s): BaseException(s) {}
85
+ SettingNotFoundException (const std::string & s): BaseException(s) {}
86
86
};
87
87
88
88
class InvalidFilenameException : public BaseException {
89
89
public:
90
- InvalidFilenameException (std::string s): BaseException(s) {}
90
+ InvalidFilenameException (const std::string & s): BaseException(s) {}
91
91
};
92
92
93
93
class ProcessingLimitException : public BaseException {
94
94
public:
95
- ProcessingLimitException (std::string s): BaseException(s) {}
95
+ ProcessingLimitException (const std::string & s): BaseException(s) {}
96
96
};
97
97
98
98
class CommandLineError : public BaseException {
99
99
public:
100
- CommandLineError (std::string s): BaseException(s) {}
100
+ CommandLineError (const std::string & s): BaseException(s) {}
101
101
};
102
102
103
103
class ItemNotFoundException : public BaseException {
104
104
public:
105
- ItemNotFoundException (std::string s): BaseException(s) {}
105
+ ItemNotFoundException (const std::string & s): BaseException(s) {}
106
106
};
107
107
108
108
class ServerError : public BaseException {
109
109
public:
110
- ServerError (std::string s): BaseException(s) {}
110
+ ServerError (const std::string & s): BaseException(s) {}
111
111
};
112
112
113
113
// Only used on Windows (SEH)
114
114
class FatalSystemException : public BaseException {
115
115
public:
116
- FatalSystemException (std::string s): BaseException(s) {}
116
+ FatalSystemException (const std::string & s): BaseException(s) {}
117
117
};
118
118
119
119
/*
@@ -126,7 +126,7 @@ class InvalidPositionException : public BaseException
126
126
InvalidPositionException ():
127
127
BaseException (" Somebody tried to get/set something in a nonexistent position." )
128
128
{}
129
- InvalidPositionException (std::string s):
129
+ InvalidPositionException (const std::string & s):
130
130
BaseException (s)
131
131
{}
132
132
};
0 commit comments