Combine any number of ParsingErrors into one and raise it.
(exceptions: Iterable['ParsingError'])
| 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 |