using System;
using System.Runtime.Serialization;
namespace Umbraco.Core.Exceptions
{
///
/// The exception that is thrown when a requested method or operation is not, and will not be, implemented.
///
///
/// The is to be used when some code is not implemented,
/// but should eventually be implemented (i.e. work in progress) and is reported by tools such as ReSharper.
/// This exception is to be used when some code is not implemented, and is not meant to be, for whatever
/// reason.
///
///
[Serializable]
[Obsolete("If a method or operation is not, and will not be, implemented, it is invalid or not supported, so we should throw either an InvalidOperationException or NotSupportedException instead.")]
public class WontImplementException : NotImplementedException
{
///
/// Initializes a new instance of the class.
///
public WontImplementException()
{ }
///
/// Initializes a new instance of the class with a specified reason message.
///
/// The error message that explains the reason for the exception.
public WontImplementException(string message)
: base(message)
{ }
///
/// Initializes a new instance of the class.
///
/// 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 , the current exception is raised in a block that handles the inner exception.
public WontImplementException(string message, Exception inner)
: base(message, inner)
{ }
///
/// Initializes a new instance of the class.
///
/// The that holds the serialized object data about the exception being thrown.
/// The that contains contextual information about the source or destination.
protected WontImplementException(SerializationInfo info, StreamingContext context)
: base(info, context)
{ }
}
}