me.prettyprint.hector.api.exceptions
Class HCassandraInternalException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by me.prettyprint.hector.api.exceptions.HectorException
                  extended by me.prettyprint.hector.api.exceptions.HCassandraInternalException
All Implemented Interfaces:
Serializable

public class HCassandraInternalException
extends HectorException

Designed to loosely wrap TApplicationException which can be generated by Apache Cassandra under a variety of ambiguous conditions - some of them transient, some of them not.

Author:
zznate
See Also:
Serialized Form

Constructor Summary
HCassandraInternalException(int type, String msg)
           
HCassandraInternalException(String msg)
           
HCassandraInternalException(String s, Throwable t)
           
HCassandraInternalException(Throwable t)
           
 
Method Summary
 int getType()
          The underlying 'type' directly from TApplicationException#getType
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HCassandraInternalException

public HCassandraInternalException(String msg)

HCassandraInternalException

public HCassandraInternalException(int type,
                                   String msg)

HCassandraInternalException

public HCassandraInternalException(String s,
                                   Throwable t)

HCassandraInternalException

public HCassandraInternalException(Throwable t)
Method Detail

getType

public int getType()
The underlying 'type' directly from TApplicationException#getType

Returns:


Copyright © 2011. All Rights Reserved.