Foxchat.NET/Foxchat.Core/FoxchatError.cs
2024-05-14 14:50:01 +02:00

15 lines
567 B
C#

namespace Foxchat.Core;
public class FoxchatError(string message) : Exception(message)
{
public class ApiError(string message) : FoxchatError(message);
public class BadRequest(string message) : ApiError(message);
public class IncomingFederationError(string message) : FoxchatError(message);
public class OutgoingFederationError(string message, Models.ApiError? innerError = null) : FoxchatError(message)
{
public Models.ApiError? InnerError => innerError;
}
public class DatabaseError(string message) : FoxchatError(message);
}