use Json::RuntimeError

This commit is contained in:
Christopher Dunn
2015-03-08 12:43:18 -05:00
parent 9376368d86
commit 2250b3c29d
4 changed files with 7 additions and 10 deletions

View File

@@ -12,7 +12,6 @@
#include <sstream>
#include <utility>
#include <set>
#include <stdexcept>
#include <assert.h>
#include <math.h>
#include <stdio.h>
@@ -1080,7 +1079,7 @@ StreamWriter* StreamWriterBuilder::newStreamWriter() const
} else if (cs_str == "None") {
cs = CommentStyle::None;
} else {
throw std::runtime_error("commentStyle must be 'All' or 'None'");
throwRuntimeError("commentStyle must be 'All' or 'None'");
}
std::string colonSymbol = " : ";
if (eyc) {