forked from mtusi2026/mtusi2026lab2
Copy the committed lab 1 sources as-is: src/, student-tests/, bench/, Dockerfile, docker-compose.yml, pyproject.toml, uv.lock, .python-version, config_example.toml, AGENTS.md, CLAUDE.md, .claude/, openspec/, .graphifyignore and KNOWN_ISSUES.md. Lab 1 evidence stays in the lab 1 repository. Merge the new skeleton files with own sections: Makefile (lab 2 targets plus own run, docker, bench and common targets), .gitignore, .dockerignore and .env.example. Rename the image to mtusi-messenger:lab2 and point AGENTS.md at lab 2. The application is still the in-memory lab 1 implementation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
557 B
Python
18 lines
557 B
Python
from .base import DomainError
|
|
|
|
|
|
class ChatNotFound(DomainError):
|
|
"""Чата нет или текущий пользователь в нём не состоит.
|
|
|
|
Оба случая дают одно исключение, чтобы не раскрывать существование
|
|
чужого чата.
|
|
"""
|
|
|
|
default_message = "Not found"
|
|
|
|
|
|
class InvalidChatMembers(DomainError):
|
|
"""Участник не существует или вызывающего нет в member_ids."""
|
|
|
|
default_message = "Invalid chat members"
|