| 5 | |
| 6 | |
| 7 | class ExceptionBreakpoint(object): |
| 8 | def __init__( |
| 9 | self, |
| 10 | qname, |
| 11 | condition, |
| 12 | expression, |
| 13 | notify_on_handled_exceptions, |
| 14 | notify_on_unhandled_exceptions, |
| 15 | notify_on_user_unhandled_exceptions, |
| 16 | notify_on_first_raise_only, |
| 17 | ignore_libraries, |
| 18 | ): |
| 19 | exctype = get_exception_class(qname) |
| 20 | self.qname = qname |
| 21 | if exctype is not None: |
| 22 | self.name = exctype.__name__ |
| 23 | else: |
| 24 | self.name = None |
| 25 | |
| 26 | self.condition = condition |
| 27 | self.expression = expression |
| 28 | self.notify_on_unhandled_exceptions = notify_on_unhandled_exceptions |
| 29 | self.notify_on_handled_exceptions = notify_on_handled_exceptions |
| 30 | self.notify_on_first_raise_only = notify_on_first_raise_only |
| 31 | self.notify_on_user_unhandled_exceptions = notify_on_user_unhandled_exceptions |
| 32 | self.ignore_libraries = ignore_libraries |
| 33 | |
| 34 | self.type = exctype |
| 35 | |
| 36 | def __str__(self): |
| 37 | return self.qname |
| 38 | |
| 39 | @property |
| 40 | def has_condition(self): |
| 41 | return self.condition is not None |
| 42 | |
| 43 | def handle_hit_condition(self, frame): |
| 44 | return False |
| 45 | |
| 46 | |
| 47 | class LineBreakpoint(object): |
no outgoing calls
no test coverage detected