Skip to content

Commit 291719f

Browse files
committed
Effects: No "" file_path args to exceptions
1 parent 366ff2c commit 291719f

File tree

14 files changed

+28
-28
lines changed

14 files changed

+28
-28
lines changed

src/effects/Bars.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void Bars::SetJson(string value) {
151151

152152
if (!success)
153153
// Raise exception
154-
throw InvalidJSON("JSON could not be parsed (or is invalid)", "");
154+
throw InvalidJSON("JSON could not be parsed (or is invalid)");
155155

156156
try
157157
{
@@ -161,7 +161,7 @@ void Bars::SetJson(string value) {
161161
catch (const std::exception& e)
162162
{
163163
// Error parsing JSON (or missing keys)
164-
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)", "");
164+
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)");
165165
}
166166
}
167167

src/effects/Blur.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ void Blur::SetJson(string value) {
288288

289289
if (!success)
290290
// Raise exception
291-
throw InvalidJSON("JSON could not be parsed (or is invalid)", "");
291+
throw InvalidJSON("JSON could not be parsed (or is invalid)");
292292

293293
try
294294
{
@@ -298,7 +298,7 @@ void Blur::SetJson(string value) {
298298
catch (const std::exception& e)
299299
{
300300
// Error parsing JSON (or missing keys)
301-
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)", "");
301+
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)");
302302
}
303303
}
304304

src/effects/Brightness.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ void Brightness::SetJson(string value) {
142142

143143
if (!success)
144144
// Raise exception
145-
throw InvalidJSON("JSON could not be parsed (or is invalid)", "");
145+
throw InvalidJSON("JSON could not be parsed (or is invalid)");
146146

147147
try
148148
{
@@ -152,7 +152,7 @@ void Brightness::SetJson(string value) {
152152
catch (const std::exception& e)
153153
{
154154
// Error parsing JSON (or missing keys)
155-
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)", "");
155+
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)");
156156
}
157157
}
158158

src/effects/ChromaKey.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ void ChromaKey::SetJson(string value) {
135135

136136
if (!success)
137137
// Raise exception
138-
throw InvalidJSON("JSON could not be parsed (or is invalid)", "");
138+
throw InvalidJSON("JSON could not be parsed (or is invalid)");
139139

140140
try
141141
{
@@ -145,7 +145,7 @@ void ChromaKey::SetJson(string value) {
145145
catch (const std::exception& e)
146146
{
147147
// Error parsing JSON (or missing keys)
148-
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)", "");
148+
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)");
149149
}
150150
}
151151

src/effects/ColorShift.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ void ColorShift::SetJson(string value) {
234234

235235
if (!success)
236236
// Raise exception
237-
throw InvalidJSON("JSON could not be parsed (or is invalid)", "");
237+
throw InvalidJSON("JSON could not be parsed (or is invalid)");
238238

239239
try
240240
{
@@ -244,7 +244,7 @@ void ColorShift::SetJson(string value) {
244244
catch (const std::exception& e)
245245
{
246246
// Error parsing JSON (or missing keys)
247-
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)", "");
247+
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)");
248248
}
249249
}
250250

src/effects/Crop.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ void Crop::SetJson(string value) {
150150

151151
if (!success)
152152
// Raise exception
153-
throw InvalidJSON("JSON could not be parsed (or is invalid)", "");
153+
throw InvalidJSON("JSON could not be parsed (or is invalid)");
154154

155155
try
156156
{
@@ -160,7 +160,7 @@ void Crop::SetJson(string value) {
160160
catch (const std::exception& e)
161161
{
162162
// Error parsing JSON (or missing keys)
163-
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)", "");
163+
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)");
164164
}
165165
}
166166

src/effects/Deinterlace.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void Deinterlace::SetJson(string value) {
129129

130130
if (!success)
131131
// Raise exception
132-
throw InvalidJSON("JSON could not be parsed (or is invalid)", "");
132+
throw InvalidJSON("JSON could not be parsed (or is invalid)");
133133

134134
try
135135
{
@@ -139,7 +139,7 @@ void Deinterlace::SetJson(string value) {
139139
catch (const std::exception& e)
140140
{
141141
// Error parsing JSON (or missing keys)
142-
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)", "");
142+
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)");
143143
}
144144
}
145145

src/effects/Hue.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ void Hue::SetJson(string value) {
136136

137137
if (!success)
138138
// Raise exception
139-
throw InvalidJSON("JSON could not be parsed (or is invalid)", "");
139+
throw InvalidJSON("JSON could not be parsed (or is invalid)");
140140

141141
try
142142
{
@@ -146,7 +146,7 @@ void Hue::SetJson(string value) {
146146
catch (const std::exception& e)
147147
{
148148
// Error parsing JSON (or missing keys)
149-
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)", "");
149+
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)");
150150
}
151151
}
152152

src/effects/Mask.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void Mask::SetJson(string value) {
189189

190190
if (!success)
191191
// Raise exception
192-
throw InvalidJSON("JSON could not be parsed (or is invalid)", "");
192+
throw InvalidJSON("JSON could not be parsed (or is invalid)");
193193

194194
try
195195
{
@@ -199,7 +199,7 @@ void Mask::SetJson(string value) {
199199
catch (const std::exception& e)
200200
{
201201
// Error parsing JSON (or missing keys)
202-
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)", "");
202+
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)");
203203
}
204204
}
205205

src/effects/Negate.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void Negate::SetJson(string value) {
9090

9191
if (!success)
9292
// Raise exception
93-
throw InvalidJSON("JSON could not be parsed (or is invalid)", "");
93+
throw InvalidJSON("JSON could not be parsed (or is invalid)");
9494

9595
try
9696
{
@@ -100,7 +100,7 @@ void Negate::SetJson(string value) {
100100
catch (const std::exception& e)
101101
{
102102
// Error parsing JSON (or missing keys)
103-
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)", "");
103+
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)");
104104
}
105105
}
106106

0 commit comments

Comments
 (0)