Skip to content

Draft Session#21

Merged
toximu merged 5 commits into
mainfrom
picks-bans
May 26, 2026
Merged

Draft Session#21
toximu merged 5 commits into
mainfrom
picks-bans

Conversation

@toximu
Copy link
Copy Markdown
Contributor

@toximu toximu commented May 23, 2026

No description provided.

@toximu toximu requested a review from MhlvDenis May 23, 2026 19:32
draftSession,
allOptions.get(randomIndex)
);
log.info("BANNED");
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Плохой лог. Что забанили? В какой сессии? Кто?

draftSession.getSecondUserId();

if (!nowUserMoving.equals(user.getId())) {
throw new DraftSessionException("It is not your turn now!");
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Выглядит как текст ошибки на UI. На бэке все конкретные ошибки должны быть представлены либо отдельным классом, либо enum. Человекочитаемое сообщение мы создаем и отдаем либо в момент формирования response, либо вообще на фронте

@toximu toximu merged commit f02a651 into main May 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants