Files
OwnCord/Client/OwnCord.Client/Services/ApiException.cs
T
jevb 25449eb204 feat: redesign login UI, add save-password, fix permissions, add audit logging, member_join broadcast
- Redesign ConnectPage with modern dark theme, profile cards with delete buttons, login/register toggle
- Add DPAPI-encrypted password saving with "Remember my password" checkbox
- Fix permission bit constants to match SCHEMA.md (Member role 0x663)
- Add migration 004 to fix existing Member role permissions
- Add comprehensive audit logging across all server packages (auth, admin, ws, setup)
- Add member_join WebSocket broadcast so new users appear in members list in real-time
- Add host URL normalization (strip scheme prefix) for reverse proxy compatibility
- Add REST API client, ChatService orchestrator, WebSocket service with reconnection
- Add model types (WsEnvelope payloads, API responses), converters, tests
2026-03-15 00:31:39 +01:00

18 lines
433 B
C#

namespace OwnCord.Client.Services;
/// <summary>
/// Exception thrown when the OwnCord server returns an error response.
/// </summary>
public sealed class ApiException : Exception
{
public string ErrorCode { get; }
public int StatusCode { get; }
public ApiException(string errorCode, string message, int statusCode)
: base(message)
{
ErrorCode = errorCode;
StatusCode = statusCode;
}
}