using System; using System.Diagnostics.CodeAnalysis; #if !NO_SERIALIZABLE using System.Runtime.Serialization; #endif namespace Octokit { /// /// Represents a HTTP 403 - Forbidden response returned from the API. /// #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 InvalidGitIgnoreTemplateException : ApiValidationException { /// /// Constructs an instance of ApiValidationException /// public InvalidGitIgnoreTemplateException() { } /// /// Constructs an instance of ApiValidationException /// /// The inner validation exception. public InvalidGitIgnoreTemplateException(ApiValidationException innerException) : base(innerException) { } public override string Message { get { return "The Gitignore template provided is not valid."; } } #if !NO_SERIALIZABLE /// /// Constructs an instance of InvalidGitignoreTemplateException /// /// /// The that holds the /// serialized object data about the exception being thrown. /// /// /// The that contains /// contextual information about the source or destination. /// protected InvalidGitIgnoreTemplateException(SerializationInfo info, StreamingContext context) : base(info, context) { } #endif } }