ID EN
Built-in Exceptions

subgroup

Python 3.11

Returns an exception group that contains only the exceptions from the current group that match condition, or None if the result is empty.

Syntax

PYTHON
subgroup(condition)

See Also

message __traceback__ __cause__ __context__ __notes__