galaeth-draft/Galaeth.Services/Exceptions/InvalidCredentialsException.cs

20 lines
569 B
C#
Raw Permalink Normal View History

2024-11-17 10:31:01 +01:00
using System.Net;
using Galaeth.Core.Exceptions;
using Galaeth.Services.Constants;
namespace Galaeth.Services.Exceptions;
/// <summary>
/// Thrown if username/password is incorrect.
/// </summary>
public class InvalidCredentialsException : ServiceException
{
/// <summary>
/// Initializes a new instance of the <see cref="InvalidCredentialsException"/> class.
/// </summary>
public InvalidCredentialsException()
: base(ServiceErrorCodes.InvalidCredentials, "The credentials provided were incorrect", HttpStatusCode.Unauthorized)
{
}
}