diff options
author | lloyd <[email protected]> | 2010-01-05 23:06:31 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-01-05 23:06:31 +0000 |
commit | 2837e915d82e439730624f15bfc8c820475c9d65 (patch) | |
tree | aeb1ec26572fb29c1bd60baab582699279201d71 /doc | |
parent | 968a4250218d40f3da9eee8ff50432a3169605c6 (diff) |
Clean up exceptions. Remove some unused ones like Config_Error. Make
Invalid_Argument just a typedef for std::invalid_argument. Make
Botan::Exception a typedef for std::runtime_error. Make Memory_Exhaustion
a public exception, and use it in other places where memory allocations
can fail.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/pqg_gen.cpp | 4 |
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); |