MCPcopy Create free account
hub / github.com/apache/thrift / testMultiException

Method testMultiException

test/rb/integration/TestServer.rb:93–101  ·  view source on GitHub ↗
(arg0, arg1)

Source from the content-addressed store, hash-verified

91 end
92
93 def testMultiException(arg0, arg1)
94 if arg0 == "Xception2"
95 raise Thrift::Test::Xception2, :errorCode => 2002, :struct_thing => ::Thrift::Test::Xtruct.new({ :string_thing => 'This is an Xception2' })
96 elsif arg0 == "Xception"
97 raise Thrift::Test::Xception, :errorCode => 1001, :message => 'This is an Xception'
98 else
99 return ::Thrift::Test::Xtruct.new({'string_thing' => arg1})
100 end
101 end
102
103 def testOneway(arg0)
104 sleep(arg0)

Callers 1

test_multi_exceptionMethod · 0.45

Calls 1

newMethod · 0.45

Tested by

no test coverage detected