using System.Net;

namespace adas_core.Domain.Exceptions;

/// <summary>
/// Represents an exception that is thrown when an error occurs within the login services layer.
/// </summary>
/// <remarks>
/// This exception extends <see cref="BusinessException"/> to signal business-level failures
/// specific to authentication and login operations.
/// </remarks>
public class LoginServicesException : BusinessException
{
    public LoginServicesException(string message) :
        base(HttpStatusCode.BadRequest, $"Login service error: {message}")
    {
    }

    public LoginServicesException(string message, Exception exception) : base($"Login service error: {message}",
        exception)
    {
    }
}