using System.Runtime.Serialization;
namespace Umbraco.Cms.Core.Exceptions;
///
/// An exception that is thrown if the configuration is wrong.
///
///
[Serializable]
public class ConfigurationException : Exception
{
///
/// Initializes a new instance of the class with a specified error message.
///
/// The message that describes the error.
public ConfigurationException(string message)
: base(message)
{
}
///
/// Initializes a new instance of the class with a specified error message
/// and a reference to the inner exception which is the cause of this exception.
///
/// The message that describes the error.
/// The inner exception, or null.
public ConfigurationException(string message, Exception innerException)
: base(message, innerException)
{
}
///
/// 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 ConfigurationException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}