Lines Matching full:exceptions
36 It holds on to the ExceptionAnnotator and its previously captured exceptions
40 def __init__(self, message: str, exceptions: ExceptionAnnotator):
42 self.exceptions = exceptions
45 return len(self.exceptions)
48 return self.exceptions.matching(*args)
52 return self.exceptions
56 """Used in a with-scope to annotate exceptions with a TInfoStack.
104 # Handle matching exceptions directly here and prevent further
121 """Collects exceptions with full backtraces and user-provided info stacks.
133 # The info_stack adds additional meta information to handle exceptions.
151 def exceptions(self) -> List[Entry]: member in ExceptionAnnotator
187 """Only sets info stack entries, exceptions are passed-through."""
193 exceptions: TExceptionTypes = (Exception,),
196 """Sets info stack entries and captures exceptions.
197 - Does not rethrow captured exceptions
200 return ExceptionAnnotationScope(self, exceptions, ignore, stack_entries,
206 exceptions: TExceptionTypes = (Exception,),
210 with self.capture(*stack_entries, exceptions=exceptions, ignore=ignore):
219 self._exceptions.extend(annotator.exceptions)
225 for entry in annotator.exceptions:
239 # Directly add exceptions from nested annotators.
240 self.extend(exception.exceptions, is_nested=True)
311 exceptions: TExceptionTypes = (Exception,),
319 *stack_entries, exceptions=exceptions, ignore=ignore)
327 exceptions: TExceptionTypes = (Exception,)):
335 exceptions=exceptions,
342 exception annotations that could in theory mute exceptions and create an