mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
- 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
18 lines
433 B
C#
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;
|
|
}
|
|
}
|