summaryrefslogtreecommitdiff
path: root/src/expr/command.cpp
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@cs.nyu.edu>2013-02-20 18:09:59 -0500
committerMorgan Deters <mdeters@cs.nyu.edu>2013-02-20 18:41:23 -0500
commit19847e87a8894d61b59d27bedd35aa73e44c126f (patch)
treec3c600e21e6fd74edf5d5e8a442cf6c2d2f28bab /src/expr/command.cpp
parent6fe464a1e87d62aa4ad12f7410542e09c3464436 (diff)
Some exception specification fixes in SmtEngine/Command infrastructure
Diffstat (limited to 'src/expr/command.cpp')
-rw-r--r--src/expr/command.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/expr/command.cpp b/src/expr/command.cpp
index fa2a8d1f2..9edc77e39 100644
--- a/src/expr/command.cpp
+++ b/src/expr/command.cpp
@@ -703,8 +703,12 @@ Expr SimplifyCommand::getTerm() const throw() {
}
void SimplifyCommand::invoke(SmtEngine* smtEngine) throw() {
- d_result = smtEngine->simplify(d_term);
- d_commandStatus = CommandSuccess::instance();
+ try {
+ d_result = smtEngine->simplify(d_term);
+ d_commandStatus = CommandSuccess::instance();
+ } catch(exception& e) {
+ d_commandStatus = new CommandFailure(e.what());
+ }
}
Expr SimplifyCommand::getResult() const throw() {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback