(self, exc)
| 55 | |
| 56 | @contextmanager |
| 57 | def NewCurrentException(self, exc): |
| 58 | try: |
| 59 | self.exceptions_stack.append(exc) |
| 60 | self.current_exception = exc |
| 61 | self.veh_depth += 1 |
| 62 | yield exc |
| 63 | finally: |
| 64 | self.exceptions_stack.pop() |
| 65 | self.current_exception = self.exceptions_stack[-1] |
| 66 | self.veh_depth -= 1 |
| 67 | |
| 68 | def get_exception_code(self): |
| 69 | """Return ExceptionCode of current exception""" |
no outgoing calls
no test coverage detected