THRIFT-727 - C++: what() method of generated exceptions will provide more information
Patch: Anna Dymek <aadymek@gmail.com>
Client: C++
This closes #469
diff --git a/tutorial/java/src/CalculatorHandler.java b/tutorial/java/src/CalculatorHandler.java
index 4216be5..92944b0 100644
--- a/tutorial/java/src/CalculatorHandler.java
+++ b/tutorial/java/src/CalculatorHandler.java
@@ -58,7 +58,7 @@
case DIVIDE:
if (work.num2 == 0) {
InvalidOperation io = new InvalidOperation();
- io.what = work.op.getValue();
+ io.whatOp = work.op.getValue();
io.why = "Cannot divide by 0";
throw io;
}
@@ -66,7 +66,7 @@
break;
default:
InvalidOperation io = new InvalidOperation();
- io.what = work.op.getValue();
+ io.whatOp = work.op.getValue();
io.why = "Unknown operation";
throw io;
}