src: Don't pass "" file_path args to exceptions

This commit is contained in:
FeRD (Frank Dana)
2019-08-27 15:47:39 -04:00
parent 49749d52c2
commit 366ff2c5e6
20 changed files with 49 additions and 49 deletions

View File

@@ -75,7 +75,7 @@ ReaderBase* FrameMapper::Reader()
return reader;
else
// Throw error if reader not initialized
throw ReaderClosed("No Reader has been initialized for FrameMapper. Call Reader(*reader) before calling this method.", "");
throw ReaderClosed("No Reader has been initialized for FrameMapper. Call Reader(*reader) before calling this method.");
}
void FrameMapper::AddField(int64_t frame)
@@ -707,7 +707,7 @@ void FrameMapper::SetJson(string value) {
if (!success)
// Raise exception
throw InvalidJSON("JSON could not be parsed (or is invalid)", "");
throw InvalidJSON("JSON could not be parsed (or is invalid)");
try
{
@@ -717,7 +717,7 @@ void FrameMapper::SetJson(string value) {
catch (const std::exception& e)
{
// Error parsing JSON (or missing keys)
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)", "");
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)");
}
}