24 lines
696 B
C#
24 lines
696 B
C#
|
// <copyright file="UserNotFoundException.cs" company="alveus.dev">
|
||
|
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
|
||
|
// </copyright>
|
||
|
|
||
|
using System.Net;
|
||
|
using Astral.Core.Constants;
|
||
|
using Astral.Core.Exceptions;
|
||
|
|
||
|
namespace Astral.Services.Exceptions;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Thrown when the logging in user is suspended.
|
||
|
/// </summary>
|
||
|
public class UserNotFoundException : ServiceException
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Initializes a new instance of the <see cref="UserNotFoundException" /> class.
|
||
|
/// </summary>
|
||
|
public UserNotFoundException()
|
||
|
: base(CoreErrorCodes.NotFoundError, "The provided user was not found", HttpStatusCode.NotFound)
|
||
|
{
|
||
|
}
|
||
|
}
|