예제 #1
0
 def testException(self, s):
     if s == 'Xception':
         x = Xception()
         x.errorCode = 1001
         x.message = s
         raise x
     elif s == "throw_undeclared":
         raise ValueError("foo")
예제 #2
0
 def testException(self, s):
     if s == 'Xception':
         x = Xception()
         x.errorCode = 1001
         x.message = s
         raise x
     elif s == 'throw_undeclared':
         raise ValueError('testing undeclared exception')
예제 #3
0
 def testException(self, s):
     if s == "Xception":
         x = Xception()
         x.errorCode = 1001
         x.message = s
         raise x
     elif s == "throw_undeclared":
         raise ValueError("foo")
예제 #4
0
파일: test_suite.py 프로젝트: Jens-G/thrift
 def testException(self, s):
     if s == 'Xception':
         x = Xception()
         x.errorCode = 1001
         x.message = s
         raise x
     elif s == 'throw_undeclared':
         raise ValueError('testing undeclared exception')