Class ConfigurationException
An exception that is thrown if the configuration is wrong.
Inheritance
object
Exception
Namespace: Umbraco.Cms.Core.Exceptions
Assembly: Umbraco.Core.dll
Syntax
[Serializable]
public class ConfigurationException : Exception
Constructors
View SourceConfigurationException(SerializationInfo, StreamingContext)
Initializes a new instance of the ConfigurationException class.
Declaration
protected ConfigurationException(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
| StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |
ConfigurationException(string)
Initializes a new instance of the ConfigurationException class with a specified error message.
Declaration
public ConfigurationException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the error. |
ConfigurationException(string, Exception)
Initializes a new instance of the ConfigurationException class with a specified error message and a reference to the inner exception which is the cause of this exception.
Declaration
public ConfigurationException(string message, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the error. |
| Exception | innerException | The inner exception, or null. |