Class NoHostAvailableException
Exception thrown when a query cannot be performed because no host are available. This exception is thrown if
- either there is no host live in the cluster at the moment of the query
- all host that have been tried have failed due to a connection problem
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetObjectData(SerializationInfo, StreamingContext)
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Cassandra
Assembly: Cassandra.dll
Syntax
[Serializable]
public class NoHostAvailableException : DriverException, ISerializable
Constructors
NoHostAvailableException(Dictionary<IPEndPoint, Exception>)
Declaration
public NoHostAvailableException(Dictionary<IPEndPoint, Exception> errors)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<IPEndPoint, Exception> | errors |
NoHostAvailableException(SerializationInfo, StreamingContext)
Declaration
protected NoHostAvailableException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |
Properties
Errors
Gets the hosts tried along with descriptions of the error encountered while trying them.
Declaration
public Dictionary<IPEndPoint, Exception> Errors { get; }
Property Value
Type | Description |
---|---|
Dictionary<IPEndPoint, Exception> |
Implements
System.Runtime.Serialization.ISerializable