- 8 DB models (services, incidents, monitors, subscribers, etc.) - Full CRUD API for services, incidents, monitors - Public status page with live data - Incident detail page with timeline - API key authentication - Uptime monitoring scheduler - 13 tests passing - TECHNICAL_DESIGN.md with full spec
16 lines
399 B
Python
16 lines
399 B
Python
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}"
|