diff options
author | Konrad Grochowski <hcorg@apache.org> | 2015-05-18 17:58:36 +0200 |
---|---|---|
committer | Konrad Grochowski <hcorg@apache.org> | 2015-05-18 19:47:23 +0200 |
commit | 3b115dfa614cfac7af86d81d99f69b381508b75e (patch) | |
tree | 525eef0ea64f6e3065ab416599c1be2b8be9e6a7 /tutorial/d | |
parent | 83cd3e8d41001304f2efac9ebad92e02d3390ca7 (diff) | |
download | thrift-3b115dfa614cfac7af86d81d99f69b381508b75e.tar.gz |
THRIFT-727 - C++: what() method of generated exceptions will provide more information
Patch: Anna Dymek <aadymek@gmail.com>
Client: C++
This closes #469
Diffstat (limited to 'tutorial/d')
-rw-r--r-- | tutorial/d/server.d | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tutorial/d/server.d b/tutorial/d/server.d index d32b9374d..cbcedccf3 100644 --- a/tutorial/d/server.d +++ b/tutorial/d/server.d @@ -62,7 +62,7 @@ class CalculatorHandler : Calculator { case Operation.DIVIDE: if (work.num2 == 0) { auto io = new InvalidOperation(); - io.what = work.op; + io.whatOp = work.op; io.why = "Cannot divide by 0"; throw io; } @@ -70,7 +70,7 @@ class CalculatorHandler : Calculator { break; default: auto io = new InvalidOperation(); - io.what = work.op; + io.whatOp = work.op; io.why = "Invalid Operation"; throw io; } |