diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-02-16 10:29:14 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-02-16 10:29:14 +0100 |
commit | ef0f64024a6ceec6d7a6411bcfaa614f94b03130 (patch) | |
tree | e06c248e5ae25c49fa4a1ac8c04f6836658c01f8 /server | |
parent | c5cfc6d194ab81cc6d1f1143ebfb8b6f93dddede (diff) |
Fix uncaught Exception.
Diffstat (limited to 'server')
-rw-r--r-- | server/src/transactionhandler.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/server/src/transactionhandler.cc b/server/src/transactionhandler.cc index d167029..6ab3d89 100644 --- a/server/src/transactionhandler.cc +++ b/server/src/transactionhandler.cc @@ -107,7 +107,7 @@ static std::string handleCommits(Transaction &transaction, Environment &env, static std::string handleRequest(Request &request, Environment &env, Session &session) - throw(NotFoundException) + throw(NotFoundException, Exception) { std::string answer; @@ -347,9 +347,6 @@ std::string handleTransaction(Request &request, } catch( std::exception &e ) { ERR(server, "Request error: %s\n", e.what()); return error_box(xml_encode(e.what())); - } catch( ... ) { - ERR(server, "Unknown exception in handleRequest\n"); - return error_box(xml_encode("Unknown exception in handleRequest.")); } answer += "</pracro>\n"; |