Files
monorepo/LCU.API.Collections.RepoApi-old/LCU.API.Collections.RepoApi/Exceptions/ServerErrorException.cs
T
2026-04-20 14:47:24 -05:00

16 lines
627 B
C#

using System;
namespace LCU.API.Collections.RepoApi.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).
*/
// IF YOU SEE THIS EXCEPTION IN SEQ, IT MEANS YES, YOU HAVE TO INVESTIGATE.
public class ServerErrorException : Exception
{
public ServerErrorException(): base("[INVESTIGATE] A server error occured. See associated logs.") { }
}
}