Class ConfigurationException
An exception that is thrown if the configuration is wrong.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Exceptions
Assembly: Umbraco.Core.dll
Syntax
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 |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.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 |
---|---|---|
System.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 |
---|---|---|
System.String | message | The message that describes the error. |
Exception | innerException | The inner exception, or null. |