aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/pqg_gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/pqg_gen.cpp')
-rw-r--r--doc/examples/pqg_gen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/pqg_gen.cpp b/doc/examples/pqg_gen.cpp
index 4104e8ecb..e797233f9 100644
--- a/doc/examples/pqg_gen.cpp
+++ b/doc/examples/pqg_gen.cpp
@@ -31,7 +31,7 @@ int main()
std::ifstream in("PQGGen.rsp");
if(!in)
- throw Exception("Can't open response file");
+ throw std::runtime_error("Can't open response file");
std::map<std::string, std::string> inputs;
@@ -46,7 +46,7 @@ int main()
std::vector<std::string> name_and_val = split_on(line, '=');
if(name_and_val.size() != 2)
- throw Decoding_Error("Unexpected input: " + line);
+ throw std::runtime_error("Unexpected input: " + line);
name_and_val[0].erase(name_and_val[0].size()-1);
name_and_val[1].erase(0, 1);