Class OperationNotSupportedException
This is a data class used to inform the user that the requested operation is not supported in the current edition of NCache.
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public class OperationNotSupportedException : CacheException, ISerializable, _Exception
Constructors
OperationNotSupportedException()
The default constructor of class OperationNtSupportedException.
Declaration
public OperationNotSupportedException()
OperationNotSupportedException(Int32, String)
An overloaded constructor that takes reason of exception and errorcode as parameters.
Declaration
public OperationNotSupportedException(int errorCode, string reason)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | Assigned errorcode. |
System.String | reason | Reason of exception. |
OperationNotSupportedException(Int32, String, Exception)
An overloaded constructor that takes reason of exception and nested exception as parameters.
Declaration
public OperationNotSupportedException(int errorCode, string reason, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | Assigned errorcode. |
System.String | reason | Reason of exception. |
System.Exception | inner | Nested exception. |
OperationNotSupportedException(Int32, String, String)
An overloaded constructor that takes reason of exception, errorcode and stacktrace as parameters.
Declaration
public OperationNotSupportedException(int errorCode, string reason, string stackTrace)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | Assigned errorcode. |
System.String | reason | Exception message. |
System.String | stackTrace | A string representation of the immediate frames on the call stack. |
OperationNotSupportedException(SerializationInfo, StreamingContext)
An overloaded constructor that takes serialization info and streaming context as parameters.
Declaration
protected OperationNotSupportedException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | Stores all the data needed to serialize or deserialize an object. |
System.Runtime.Serialization.StreamingContext | context | Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. |
OperationNotSupportedException(String)
Overloaded constructor that takes the reason as parameter.
Declaration
public OperationNotSupportedException(string reason)
Parameters
Type | Name | Description |
---|---|---|
System.String | reason | Reason of exception. |
OperationNotSupportedException(String, Exception)
An overloaded constructor that takes reason of exception and nested exception as parameters.
Declaration
public OperationNotSupportedException(string reason, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
System.String | reason | Reason of exception. |
System.Exception | inner | Nested exception. |