astral-api/Astral.Core/Exceptions/UnexpectedErrorException.cs

26 lines
733 B
C#
Raw Normal View History

2024-12-11 21:36:30 +01:00
// <copyright file="UnexpectedErrorException.cs" company="alveus.dev">
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
// </copyright>
using System.Net;
using Astral.Core.Constants;
namespace Astral.Core.Exceptions;
/// <summary>
/// Thrown when something bad has happened.
/// </summary>
public class UnexpectedErrorException : ServiceException
{
/// <summary>
/// Initializes a new instance of the <see cref="UnexpectedErrorException" /> class.
/// </summary>
public UnexpectedErrorException()
: base(
CoreErrorCodes.UnexpectedError,
"Something unexpected occured, please try later",
HttpStatusCode.InternalServerError)
{
}
}