feat: new exceptions

This commit is contained in:
2026-10-07 02:59:23 +04:00
parent 274e60a433
commit e7e7bf4db7
13 changed files with 74 additions and 36 deletions
@@ -22,7 +22,7 @@ public sealed class SetCollectionInboxCommandHandler(
if (user is null) return false;
if (user.InboxCollectionId == target.Id)
throw new DomainException("Collection is already the Inbox.");
throw new InboxProtectionException("Collection is already the Inbox.");
user.SetInboxCollection(target.Id);
await users.UpdateAsync(user, ct);