using System; using System.Runtime.Serialization; namespace LibGit2Sharp { /// /// The exception that is thrown when the ref to merge with was as part of a pull operation not fetched. /// [Serializable] public class MergeFetchHeadNotFoundException : NotFoundException { /// /// Initializes a new instance of the class. /// public MergeFetchHeadNotFoundException() { } /// /// Initializes a new instance of the class with a specified error message. /// /// A message that describes the error. public MergeFetchHeadNotFoundException(string message) : base(message) { } /// /// Initializes a new instance of the class with a specified error message. /// /// A composite format string for use in . /// An object array that contains zero or more objects to format. public MergeFetchHeadNotFoundException(string format, params object[] args) : base(format, args) { } /// /// Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. /// /// The error message that explains the reason for the exception. /// The exception that is the cause of the current exception. If the parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception. public MergeFetchHeadNotFoundException(string message, Exception innerException) : base(message, innerException) { } /// /// Initializes a new instance of the class with a serialized data. /// /// The that holds the serialized object data about the exception being thrown. /// The that contains contextual information about the source or destination. protected MergeFetchHeadNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }