MCPcopy Index your code
hub / github.com/python/cpython / _raise_all

Method _raise_all

Lib/configparser.py:327–333  ·  view source on GitHub ↗

Combine any number of ParsingErrors into one and raise it.

(exceptions: Iterable['ParsingError'])

Source from the content-addressed store, hash-verified

325
326 @staticmethod
327 def _raise_all(exceptions: Iterable['ParsingError']):
328 """
329 Combine any number of ParsingErrors into one and raise it.
330 """
331 exceptions = iter(exceptions)
332 with contextlib.suppress(StopIteration):
333 raise next(exceptions).combine(exceptions)
334
335
336

Callers 1

_readMethod · 0.80

Calls 1

combineMethod · 0.45

Tested by

no test coverage detected