Class APILoggingException
This Exception is thrown when Logging is stopped because of some connection loss or due to some other problem.
Inheritance
System.Object
                System.Exception
                
                
                APILoggingException
              Inherited Members
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public class APILoggingException : OperationFailedException, ISerializable, _Exception
              Examples
The following example demonstrates how to use this exception in your code.
try
{
    ...
}
catch(APILoggingException ex)
{
    ...
}
              Constructors
APILoggingException()
Default constructor
Declaration
public APILoggingException()
              APILoggingException(Int32)
overloaded constructor
Declaration
public APILoggingException(int errorCode)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | errorCode | assigned errorcode  | 
                  
APILoggingException(Int32, String)
overloaded constructor
Declaration
public APILoggingException(int errorCode, string reason)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | errorCode | assigned errorcode  | 
                  
| System.String | reason | exception message  | 
                  
APILoggingException(Int32, String, Exception)
overloaded constructor
Declaration
public APILoggingException(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  | 
                  
APILoggingException(Int32, String, String)
overloaded constructor
Declaration
public APILoggingException(int errorCode, string reason, string stackTrace)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | errorCode | assigned errorcode  | 
                  
| System.String | reason | exception message  | 
                  
| System.String | stackTrace | stacktrace for exception  | 
                  
APILoggingException(SerializationInfo, StreamingContext)
overloaded constructor, takes serialization info and streaming context.
Declaration
public APILoggingException(SerializationInfo info, StreamingContext context)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | |
| System.Runtime.Serialization.StreamingContext | context | 
APILoggingException(String)
overloaded constructor, takes the reason as parameter.
Declaration
public APILoggingException(string reason)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | reason | 
APILoggingException(String, Exception)
overloaded constructor.
Declaration
public APILoggingException(string reason, Exception inner)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | reason | reason for exception  | 
                  
| System.Exception | inner | nested exception  |