File: Automation\GitHubApi\HttpFailureResponseException.cs
Web Access
Project: src\src\VersionTools\Microsoft.DotNet.VersionTools\Microsoft.DotNet.VersionTools.csproj (Microsoft.DotNet.VersionTools)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Net;
using System.Net.Http;
 
namespace Microsoft.DotNet.VersionTools.Automation.GitHubApi
{
    public class HttpFailureResponseException : HttpRequestException
    {
        public HttpStatusCode HttpStatusCode { get; }
 
        public string Content { get; }
 
        public HttpFailureResponseException(
            HttpStatusCode httpStatusCode,
            string message,
            string content)
            : base(message)
        {
            HttpStatusCode = httpStatusCode;
            Content = content;
        }
    }
}