MCPcopy Create free account
hub / github.com/Lap-Platform/LAP / __init__

Method __init__

lap/core/parser.py:21–31  ·  view source on GitHub ↗
(self, message: str, line_number: int = 0, context: str = "")

Source from the content-addressed store, hash-verified

19class ParseError(Exception):
20 """Raised when LAP parsing encounters invalid syntax."""
21 def __init__(self, message: str, line_number: int = 0, context: str = ""):
22 self.line_number = line_number
23 self.context = context
24 if line_number:
25 prefix = f"Line {line_number}"
26 if context:
27 prefix += f" ({context[:60]})"
28 full = f"{prefix}: {message}"
29 else:
30 full = message
31 super().__init__(full)
32
33
34# ── Pre-compiled patterns ──────────────────────────────────────────

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected