summaryrefslogtreecommitdiff
path: root/tutorial/php
diff options
context:
space:
mode:
authorKonrad Grochowski <hcorg@apache.org>2015-05-18 17:58:36 +0200
committerKonrad Grochowski <hcorg@apache.org>2015-05-18 19:47:23 +0200
commit3b115dfa614cfac7af86d81d99f69b381508b75e (patch)
tree525eef0ea64f6e3065ab416599c1be2b8be9e6a7 /tutorial/php
parent83cd3e8d41001304f2efac9ebad92e02d3390ca7 (diff)
downloadthrift-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/php')
-rwxr-xr-xtutorial/php/PhpServer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tutorial/php/PhpServer.php b/tutorial/php/PhpServer.php
index 4af70a488..22ae43eb8 100755
--- a/tutorial/php/PhpServer.php
+++ b/tutorial/php/PhpServer.php
@@ -79,7 +79,7 @@ class CalculatorHandler implements \tutorial\CalculatorIf {
case \tutorial\Operation::DIVIDE:
if ($w->num2 == 0) {
$io = new \tutorial\InvalidOperation();
- $io->what = $w->op;
+ $io->whatOp = $w->op;
$io->why = "Cannot divide by 0";
throw $io;
}
@@ -87,7 +87,7 @@ class CalculatorHandler implements \tutorial\CalculatorIf {
break;
default:
$io = new \tutorial\InvalidOperation();
- $io->what = $w->op;
+ $io->whatOp = $w->op;
$io->why = "Invalid Operation";
throw $io;
}