Exemplo n.º 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")
Exemplo n.º 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')
Exemplo n.º 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")
Exemplo n.º 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')