ConfigurationException(string, Exception) Constructor
Initializes a new instance of the ConfigurationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Syntax

public ConfigurationException(string message, Exception innerException)

Parameters

Name Type Description
message string The error message that explains the reason for the exception.
innerException Exception The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.