galaeth-draft/Galaeth.Services/Exceptions/UserBannedException.cs

19 lines
525 B
C#
Raw Normal View History

2024-11-17 10:31:01 +01:00
using Galaeth.Core.Exceptions;
using Galaeth.Services.Constants;
namespace Galaeth.Services.Exceptions;
/// <summary>
/// Thrown when the logging in user is suspended.
/// </summary>
public class UserBannedException : ServiceException
{
/// <summary>
/// Initializes a new instance of the <see cref="UserBannedException"/> class.
/// </summary>
public UserBannedException()
: base(ServiceErrorCodes.BannedUser, "You are banned from logging in", System.Net.HttpStatusCode.Unauthorized)
{
}
}