mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 03:01:31 +00:00
Add NotFoundException for 404 status
This commit is contained in:
@@ -244,6 +244,11 @@ namespace Octokit
|
||||
throw exceptionFunc(response);
|
||||
}
|
||||
|
||||
if ((int)response.StatusCode == 404)
|
||||
{
|
||||
throw new NotFoundException(response);
|
||||
}
|
||||
|
||||
if ((int)response.StatusCode >= 400)
|
||||
{
|
||||
throw new ApiException(response);
|
||||
|
||||
Reference in New Issue
Block a user