galaeth-draft/Galaeth.Services/Exceptions/UserNotActivatedException.cs
2024-11-17 09:31:01 +00:00

19 lines
576 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 UserNotActivatedException : ServiceException
{
/// <summary>
/// Initializes a new instance of the <see cref="UserNotActivatedException"/> class.
/// </summary>
public UserNotActivatedException()
: base(ServiceErrorCodes.SuspendedUser, "Your account is pending activation. Please check your emails", System.Net.HttpStatusCode.Unauthorized)
{
}
}