minimal improvements for ApiResponse
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user