Gitee.Api by maikebing

<PackageReference Include="Gitee.Api" Version="1.0.0" />

.NET API 847,872 bytes

 SwaggerException

public class SwaggerException : Exception
using System; using System.CodeDom.Compiler; using System.Collections.Generic; namespace Gitee.Api { [GeneratedCode("NSwag", "12.0.14.0 (NJsonSchema v9.13.18.0 (Newtonsoft.Json v11.0.0.0))")] public class SwaggerException : Exception { public int StatusCode { get; set; } public string Response { get; set; } public Dictionary<string, IEnumerable<string>> Headers { get; set; } public SwaggerException(string message, int statusCode, string response, Dictionary<string, IEnumerable<string>> headers, Exception innerException) : base(message + "\n\nStatus: " + statusCode + "\nResponse: \n" + response.Substring(0, (response.Length >= 512) ? 512 : response.Length), innerException) { StatusCode = statusCode; Response = response; Headers = headers; } public override string ToString() { return $"""{Response}""{base.ToString()}"; } } }