web: detail závady s průběhem řešení, komentáři, přílohami a akcemi
This commit is contained in:
1 parent
5d8b71c435
commit
ac3ec6aff7
14 files changed
+1006
-56
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user