mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
FriendsController
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user