Adding
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
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.") { }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user