Class GeneralFailureException
Thrown when an exception occurs during a clustered operation.
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public class GeneralFailureException : CacheException
Examples
The following example demonstrates how to use this exception in your code.
try
{
...
}
catch(GeneralFailureException ex)
{
...
}
Constructors
GeneralFailureException()
default constructor.
Declaration
public GeneralFailureException()
GeneralFailureException(SerializationInfo, StreamingContext)
overloaded constructor, manual serialization.
Declaration
protected GeneralFailureException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |
GeneralFailureException(String)
overloaded constructor, takes the reason as parameter.
Declaration
public GeneralFailureException(string reason)
Parameters
Type | Name | Description |
---|---|---|
System.String | reason |
GeneralFailureException(String, Exception)
overloaded constructor.
Declaration
public GeneralFailureException(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 |