Files
adas-core/adas-core.Domain/Exceptions/LoginServicesException.cs
T
2026-06-26 10:29:23 +02:00

23 lines
706 B
C#

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)
{
}
}