Class ConfigurationException
Thrown when an exception occurs during configuration. Likely, causes are badly specified configuration strings.
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public class ConfigurationException : CacheException, ISerializable, _Exception
              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(Int32)
overloaded constructor
Declaration
public ConfigurationException(int errorCode)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | errorCode | assigned errorcode  | 
                  
ConfigurationException(Int32, String)
overloaded constructor
Declaration
public ConfigurationException(int errorCode, string reason)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | errorCode | assigned errorcode  | 
                  
| System.String | reason | exception message  | 
                  
ConfigurationException(Int32, String, Exception)
overloaded cnstructor
Declaration
public ConfigurationException(int errorCode, string reason, Exception inner)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | errorCode | assigned errorcode  | 
                  
| System.String | reason | exception message  | 
                  
| System.Exception | inner | nested exception  | 
                  
ConfigurationException(Int32, String, String)
Overloaded constructor
Declaration
public ConfigurationException(int errorCode, string reason, string stackTrace)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | errorCode | assigned errorcode  | 
                  
| System.String | reason | exception message  | 
                  
| System.String | stackTrace | stacktrace  | 
                  
ConfigurationException(SerializationInfo, StreamingContext)
overloaded constructor, manual serialization.
Declaration
protected ConfigurationException(SerializationInfo info, StreamingContext context)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | |
| System.Runtime.Serialization.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  | 
                  
| System.Exception | inner | Nested exception  |