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