maint: Tidying up DefineConstants (#2538)

This commit is contained in:
Chris Simpson
2022-08-12 18:19:26 +01:00
committed by GitHub
parent b4ca7c7c57
commit 176bf386a0
36 changed files with 14 additions and 265 deletions
@@ -2,18 +2,14 @@
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Net;
#if !NO_SERIALIZABLE
using System.Runtime.Serialization;
#endif
namespace Octokit
{
/// <summary>
/// Represents a HTTP 401 - Unauthorized response returned from the API.
/// </summary>
#if !NO_SERIALIZABLE
[Serializable]
#endif
[SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors",
Justification = "These exceptions are specific to the GitHub API and not general purpose exceptions")]
public class AuthorizationException : ApiException
@@ -51,7 +47,6 @@ namespace Octokit
{
}
#if !NO_SERIALIZABLE
/// <summary>
/// Constructs an instance of AuthorizationException.
/// </summary>
@@ -67,6 +62,5 @@ namespace Octokit
: base(info, context)
{
}
#endif
}
}