Class ConfigurationException
Thrown when an exception occurs during configuration. Likely causes are badly specified configuration strings.
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public class ConfigurationException : CacheException
Examples
The following example demonstrates how to use this exception in your code.
try
{
...
}
catch(ConfigurationException ex)
{
...
}
Constructors
ConfigurationException()
default constructor.
Declaration
public ConfigurationException()
ConfigurationException(SerializationInfo, StreamingContext)
overloaded constructor, manual serialization.
Declaration
protected ConfigurationException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |
ConfigurationException(String)
overloaded constructor, takes the reason as parameter.
Declaration
public ConfigurationException(string reason)
Parameters
Type | Name | Description |
---|---|---|
System.String | reason |
ConfigurationException(String, Exception)
overloaded constructor.
Declaration
public ConfigurationException(string reason, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
System.String | reason | reason for exception |
Exception | inner | nested exception |
Methods
GetObjectData(SerializationInfo, StreamingContext)
manual serialization
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |