web: detail závady s průběhem řešení, komentáři, přílohami a akcemi

This commit is contained in:
PatTheEvil committed 2026-12-03 00:14:53 +01:00
1 parent 5d8b71c435
commit ac3ec6aff7
14 files changed
+1006 -56

No files matched your search

+5
View File
@@ -25,6 +25,11 @@ public sealed class ApiException(HttpStatusCode statusCode, string? title, IRead
_ => "Požadavek se nepodařilo zpracovat. Zkuste to prosím znovu.",
};
/// <summary>Chyby polí, pokud je API poslalo, jinak <see cref="UserMessage"/> – pro zprávu mimo formulář.</summary>
public string AllMessages => Errors.Count == 0
? UserMessage
: string.Join(" ", Errors.Values.SelectMany(messages => messages).Distinct());
public static async Task<ApiException> FromResponseAsync(HttpResponseMessage response, CancellationToken ct)
{
string? title = null;