Go to the latest version of this document.

# ``twisted`.`logger`.`_logger`.`_FailCtxMgr``

class documentation

`class _FailCtxMgr: (source)`

Constructor: `_FailCtxMgr(fail)`

View In Hierarchy

Undocumented

Method | `__enter__` | Undocumented
Method | `__exit__` | Undocumented
Method | `__init__` | Undocumented
Class Variable | `succeeded` | Undocumented
Instance Variable | `failure` | Undocumented
Property | `failed` | Undocumented
Instance Variable | `_fail` | Undocumented

def __enter__(self) -> `Operation`: (source)

Undocumented

def __exit__(self, exc_type: `type[BaseException] | None`, exc_value: `BaseException | None`, traceback: `TracebackType | None`, /) -> `bool`: (source)

Undocumented

def __init__(self, fail: `Callable[[Failure], None]`): (source)

Undocumented

succeeded: `bool` = (source)

Undocumented

failure: `Failure | None` = (source)

Undocumented

@property
failed: `bool` = (source)

Undocumented

_fail = (source)

Undocumented