20 lines
569 B
C#
20 lines
569 B
C#
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)
|
|
{
|
|
}
|
|
}
|