minimal improvements for ApiResponse

This commit is contained in:
Pascal Schedel
2024-10-23 12:51:36 +02:00
parent 3cec6983b8
commit 59e9499d92
3 changed files with 20 additions and 3 deletions

View File

@@ -10,6 +10,6 @@ public record class ApiResponse(
public void EnsureOk()
{
if (!IsOk)
throw new Exception("Api return is not ok!");
throw new ApiException("Api return is not ok: " + StatusCode);
}
}