Files
monorepo/LCU.API.Internal.MaidBotApi/LCU.Api.Internal.MaidBotApi/Exceptions/ServerErrorException.cs
T
2026-03-11 13:21:47 -05:00

15 lines
551 B
C#

using System;
namespace LCU.Api.Internal.MaidBotApi.Exceptions
{
/**
* Do not want to expose database and related exceptions to the controllers / web layer.
* The lower layers log what happened for developers, then return a general error; unless
* a more specific error can be returned in a way to allow the client to act (such as NotFound).
*/
public class ServerErrorException : Exception
{
public ServerErrorException() : base("A server error occured, and a response could not be produced.") { }
}
}