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
For debugging
purpose, the list of hosts that have been tried along with the failure cause
can be retrieved using the
#errors method.
Inheritance
NoHostAvailableException
Assembly: Cassandra.dll
Syntax
[Serializable]
public class NoHostAvailableException : DriverException, ISerializable
Constructors
NoHostAvailableException(Dictionary<IPEndPoint, Exception>)
Declaration
public NoHostAvailableException(Dictionary<IPEndPoint, Exception> errors)
Parameters
NoHostAvailableException(SerializationInfo, StreamingContext)
Declaration
protected NoHostAvailableException(SerializationInfo info, StreamingContext context)
Parameters
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
Implements