Permalink
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (25 sloc) 1.01 KB
using FluentCassandra.Apache.Cassandra;
using FluentCassandra.Thrift.Transport;
using System;
namespace FluentCassandra.Operations
{
public class CassandraOperationException : CassandraException
{
public CassandraOperationException(AuthenticationException exc)
: base(exc.Why, exc) { }
public CassandraOperationException(InvalidRequestException exc)
: base(exc.Why, exc) { }
public CassandraOperationException(AuthorizationException exc)
: base(exc.Why, exc) { }
public CassandraOperationException(UnavailableException exc)
: base("Cassandra server is unavailable.", exc) { }
public CassandraOperationException(TimedOutException exc)
: base("Connection to Cassandra has timed out.", exc) { }
public CassandraOperationException(TimeoutException exc)
: base("Connection to Cassandra has timed out.", exc) { }
public CassandraOperationException(TTransportException exc)
: base(exc.Message, exc) { }
public CassandraOperationException(Exception exc)
: base(exc.Message, exc) { }
}
}