23 lines
695 B
C#
23 lines
695 B
C#
// <copyright file="UserBannedException.cs" company="alveus.dev">
|
|
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
|
|
// </copyright>
|
|
|
|
using System.Net;
|
|
using Astral.Core.Exceptions;
|
|
using Astral.Services.Constants;
|
|
|
|
namespace Astral.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", HttpStatusCode.Unauthorized)
|
|
{
|
|
}
|
|
}
|