Examples of HInvalidRequestException


Examples of me.prettyprint.hector.api.exceptions.HInvalidRequestException

      // Hector wraps this caveat and fixes this.
      String why = ((org.apache.cassandra.thrift.InvalidRequestException) original).getWhy();
      if (why != null && why.contains("bootstrap")) {
        return new HUnavailableException(original);
      }
      HInvalidRequestException e = new HInvalidRequestException(original);
      e.setWhy(why);
      return e;
    } else if (original instanceof TProtocolException) {
      return new HInvalidRequestException(original);
    } else if (original instanceof org.apache.cassandra.thrift.NotFoundException) {
      return new HNotFoundException(original);
    } else if (original instanceof org.apache.cassandra.thrift.UnavailableException) {
      return new HUnavailableException(original);
    } else if (original instanceof NoSuchElementException) {
View Full Code Here

Examples of me.prettyprint.hector.api.exceptions.HInvalidRequestException

            try {
                cassandraClient.set_keyspace(keyspaceName);
                if (log.isDebugEnabled())
                    log.debug("keyspace reset from {} to {}", keyspaceName, keyspaceNameArg);
            } catch (InvalidRequestException ire) {
                throw new HInvalidRequestException(ire);
            } catch (TException e) {
                throw new HectorTransportException(e);
            }
        }
        return cassandraClient;
View Full Code Here

Examples of me.prettyprint.hector.api.exceptions.HInvalidRequestException

      if ( log.isDebugEnabled() )
        log.debug("keyspace reseting from {} to {}", keyspaceName, keyspaceNameArg);
      try {
        cassandraClient.set_keyspace(keyspaceNameArg);       
      } catch (InvalidRequestException ire) {
        throw new HInvalidRequestException(ire);
      } catch (TException e) {
        throw new HectorTransportException(e);
      }
      keyspaceName = keyspaceNameArg;
    }
View Full Code Here

Examples of me.prettyprint.hector.api.exceptions.HInvalidRequestException

      // Hector wraps this caveat and fixes this.
      String why = ((org.apache.cassandra.thrift.InvalidRequestException) original).getWhy();
      if (why != null && why.contains("bootstrap")) {
        return new HUnavailableException(original);
      }
      HInvalidRequestException e = new HInvalidRequestException(original);
      e.setWhy(why);
      return e;
    } else if (original instanceof HPoolExhaustedException ) {
      return (HPoolExhaustedException) original;
    } else if (original instanceof HPoolRecoverableException ) {
      return (HPoolRecoverableException) original;
    } else if (original instanceof HInactivePoolException ) {
      return (HInactivePoolException) original;
    } else if (original instanceof TProtocolException) {
      return new HInvalidRequestException(original);
    } else if (original instanceof org.apache.cassandra.thrift.NotFoundException) {
      return new HNotFoundException(original);
    } else if (original instanceof org.apache.cassandra.thrift.UnavailableException) {
      return new HUnavailableException(original);
    } else if (original instanceof TException) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.