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/haxe/src/CalculatorHandler.hx b/tutorial/haxe/src/CalculatorHandler.hx
index 3376fb6..e9752db 100644
--- a/tutorial/haxe/src/CalculatorHandler.hx
+++ b/tutorial/haxe/src/CalculatorHandler.hx
@@ -67,7 +67,7 @@
if (work.num2 == 0)
{
var io = new InvalidOperation();
- io.what = work.op;
+ io.whatOp = work.op;
io.why = "Cannot divide by 0";
throw io;
}
@@ -75,7 +75,7 @@
default:
var io = new InvalidOperation();
- io.what = work.op;
+ io.whatOp = work.op;
io.why = "Unknown operation";
throw io;
}