(self, source, *args)
| 306 | """Raised when a configuration file does not follow legal syntax.""" |
| 307 | |
| 308 | def __init__(self, source, *args): |
| 309 | super().__init__(f'Source contains parsing errors: {source!r}') |
| 310 | self.source = source |
| 311 | self.errors = [] |
| 312 | self.args = (source, ) |
| 313 | if args: |
| 314 | self.append(*args) |
| 315 | |
| 316 | def append(self, lineno, line): |
| 317 | self.errors.append((lineno, line)) |