26 lines
793 B
C#
26 lines
793 B
C#
// <copyright file="UserNotActivatedException.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 UserNotActivatedException : ServiceException
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="UserNotActivatedException" /> class.
|
|
/// </summary>
|
|
public UserNotActivatedException()
|
|
: base(
|
|
ServiceErrorCodes.PendingActivation,
|
|
"Your account is pending activation. Please check your emails",
|
|
HttpStatusCode.Unauthorized)
|
|
{
|
|
}
|
|
}
|