//
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
//
using System.Net;
using Astral.Core.Exceptions;
using Astral.Services.Constants;
namespace Astral.Services.Exceptions;
///
/// Thrown when the logging in user is suspended.
///
public class UserNotActivatedException : ServiceException
{
///
/// Initializes a new instance of the class.
///
public UserNotActivatedException()
: base(
ServiceErrorCodes.PendingActivation,
"Your account is pending activation. Please check your emails",
HttpStatusCode.Unauthorized)
{
}
}