Files
rag-technical-docs-assistant/app/modules/documents/errors.py
T
amirhosein mazaheri b036912293 feat(ingestion): implement Phase 2 multi-format intake and raw storage
- Add format validation and inspection for PDF, DOCX, Markdown, Text, HTML, and images
- Implement secure decompression defenses (zip bombs, ratio checks) and image dimension limits
- Implement FileStore with content-addressable storage and intake repositories
- Add unit and integration tests for document intake, format sniffing, and storage roots
- Include sample acceptance document fixtures in data/documents/
2026-10-07 16:20:41 +03:30

6 lines
207 B
Python

"""Safe ingestion domain errors shared across application and persistence."""
class IntakeError(ValueError):
def __init__(self, code, message):
super().__init__(message)
self.code = code