@staticmethod<EOL><INDENT>def _create_capture_exceptions(capture_decider: Callable[[BaseException], bool]) -> Callable:<DEDENT>
def wrapped(*args, **kwargs):<EOL><INDENT>result = CaptureWrapBuilder._capture_exceptions(*args, **kwargs)<EOL>if result.exception is not None:<EOL><INDENT>if not capture_decider(result.exception):<EOL><INDENT>raise result.exception<EOL><DEDENT><DEDENT>return result<EOL><DEDENT>return wrapped<EOL>
Creates exception capturer using given capture decider.
:param capture_decider: given the exception as the first arguments, decides whether it should be captured or
not (and hence raised)
:return: