class documentation
class ErrorWatcher: (source)
Context manager that can be used to keep track of new errors recorded around a given operation. Errors maintain a stack of such watchers. The handler is called starting at the top of the stack, and is propagated down the stack unless filtered out by one of the ErrorWatcher instances.
Method | __enter__ |
Undocumented |
Method | __exit__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | filtered |
Undocumented |
Method | has |
Undocumented |
Method | on |
Handler called when a new error is recorded. |
Instance Variable | errors |
Undocumented |
Instance Variable | _filter |
Undocumented |
Instance Variable | _filtered |
Undocumented |
Instance Variable | _has |
Undocumented |
def __init__(self, errors:
Errors
, *, filter_errors: bool|Callable[ [ str, ErrorInfo], bool]
= False, save_filtered_errors: bool
= False):
(source)
¶
Undocumented