feat: new exceptions
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user