| 1 | from __future__ import annotations |
| 2 | |
| 3 | import typing as ty |
| 4 | from dataclasses import dataclass |
| 5 | |
| 6 | from flexparser import flexparser as fp |
| 7 | |
| 8 | |
| 9 | @dataclass(frozen=True) |
| 10 | class DefinitionSyntaxError(fp.ParsingError): |
| 11 | msg: str |
| 12 | base_exception: ty.Optional[Exception] = None |
| 13 | |
| 14 | |
| 15 | @dataclass(frozen=True) |
| 16 | class UnexpectedScaleInContainer(fp.ParsingError): |
| 17 | msg: str |