Exemple #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")
Exemple #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')
Exemple #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")
Exemple #4
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')