using System;
using System.Runtime.Serialization;
namespace LibGit2Sharp
{
///
/// The exception that is thrown when the provided specification cannot uniquely identify a reference, an object or a path.
///
[Serializable]
public class AmbiguousSpecificationException : LibGit2SharpException
{
///
/// Initializes a new instance of the class.
///
public AmbiguousSpecificationException()
{
}
///
/// Initializes a new instance of the class with a specified error message.
///
/// A message that describes the error.
public AmbiguousSpecificationException(string message)
: base(message)
{
}
///
/// 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 AmbiguousSpecificationException(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 AmbiguousSpecificationException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}