19 lines
540 B
C#
19 lines
540 B
C#
using Galaeth.Core.Exceptions;
|
|
using Galaeth.Services.Constants;
|
|
|
|
namespace Galaeth.Services.Exceptions;
|
|
|
|
/// <summary>
|
|
/// Thrown when the logging in user is suspended.
|
|
/// </summary>
|
|
public class UserSuspendedException : ServiceException
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="UserSuspendedException"/> class.
|
|
/// </summary>
|
|
public UserSuspendedException()
|
|
: base(ServiceErrorCodes.SuspendedUser, "You are suspended from logging in", System.Net.HttpStatusCode.Unauthorized)
|
|
{
|
|
}
|
|
}
|