26 lines
733 B
C#
26 lines
733 B
C#
|
// <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)
|
||
|
{
|
||
|
}
|
||
|
}
|