Class BadResponseException
Thrown whenever an API fails.
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public class BadResponseException : CacheException, ISerializable, _Exception
BadResponseException()
default constructor.
Declaration
public BadResponseException()
BadResponseException(SerializationInfo, StreamingContext)
overloaded constructor, manual serialization.
Declaration
public BadResponseException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |
BadResponseException(String)
overloaded constructor, takes the reason as parameter.
Declaration
public BadResponseException(string reason)
Parameters
Type | Name | Description |
---|---|---|
System.String | reason |
BadResponseException(String, Exception)
overloaded constructor.
Declaration
public BadResponseException(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 |