refactor(document): move document domain core to document/ package

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-05-05 12:39:20 +02:00
parent bb7d872a61
commit e85057bed2
2371 changed files with 385726 additions and 1971 deletions

View File

@@ -0,0 +1,16 @@
from typing import Final
class ParseError(Exception):
path: Final[str]
lineno: Final[int]
msg: Final[str]
def __init__(self, path: str, lineno: int, msg: str) -> None:
super().__init__(path, lineno, msg)
self.path = path
self.lineno = lineno
self.msg = msg
def __str__(self) -> str:
return f"{self.path}:{self.lineno + 1}: {self.msg}"