(thing)
| 81 | end |
| 82 | |
| 83 | def testException(thing) |
| 84 | if thing == "Xception" |
| 85 | raise Thrift::Test::Xception, :errorCode => 1001, :message => thing |
| 86 | elsif thing == "TException" |
| 87 | raise Thrift::Exception, :message => thing |
| 88 | else |
| 89 | # no-op |
| 90 | end |
| 91 | end |
| 92 | |
| 93 | def testMultiException(arg0, arg1) |
| 94 | if arg0 == "Xception2" |