using Galaeth.Core.Exceptions;
using Galaeth.Services.Constants;
namespace Galaeth.Services.Exceptions;
///
/// Thrown when the logging in user is suspended.
///
public class UserBannedException : ServiceException
{
///
/// Initializes a new instance of the class.
///
public UserBannedException()
: base(ServiceErrorCodes.BannedUser, "You are banned from logging in", System.Net.HttpStatusCode.Unauthorized)
{
}
}