FriendsController

This commit is contained in:
Artemy
2025-06-27 19:12:31 +07:00
parent ec44347bbe
commit 05298c004c
17 changed files with 1008 additions and 22 deletions
@@ -0,0 +1,6 @@
using Govor.Core;
namespace Govor.Application.Exceptions.FriendsService;
public class RequestAlreadySentException(Guid fromId, Guid userId)
: GovorCoreException($"Request was already sent from {fromId} to {userId}") {}
@@ -0,0 +1,13 @@
using Govor.Core;
namespace Govor.Application.Exceptions.FriendsService;
public class SearchUsersException : GovorCoreException
{
public SearchUsersException(string message, Exception innerException)
: base(message, innerException){}
public SearchUsersException(string message)
: base(message){}
}
@@ -0,0 +1,6 @@
using Govor.Core;
namespace Govor.Application.Exceptions.FriendsService;
public class SendFriendRequestException(Guid fromUserId, Guid toUserId, Exception exception)
: GovorCoreException($"Something happened when we try to send request from {fromUserId} to {toUserId}", exception);