Add NotFoundException for 404 status

This commit is contained in:
Haacked
2013-10-22 17:12:53 -07:00
parent ad210cecc7
commit 70b94187b3
5 changed files with 62 additions and 0 deletions
+5
View File
@@ -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);