Package org.apache.thrift

Examples of org.apache.thrift.TException


        throw new UnknownScanner("Scanner never existed or no longer exists");
      }
    } catch (UnknownScanner e) {
      throw e;
    } catch (Exception e) {
      throw new TException(e.toString());
    }
  }
View Full Code Here


    } catch (MutationsRejectedException e) {
      throw new org.apache.accumulo.proxy.thrift.MutationsRejectedException(e.toString());
    } catch (UnknownWriter uw) {
      throw uw;
    } catch (Exception e) {
      throw new TException(e);
    }
  }
View Full Code Here

    } catch (UnknownWriter uw) {
      throw uw;
    } catch (MutationsRejectedException e) {
      throw new org.apache.accumulo.proxy.thrift.MutationsRejectedException(e.toString());
    } catch (Exception e) {
      throw new TException(e);
    }
  }
View Full Code Here

      getConnector(login); // check to make sure user exists
      return login;
    } catch (AccumuloSecurityException e) {
      throw new org.apache.accumulo.proxy.thrift.AccumuloSecurityException(e.toString());
    } catch (Exception e) {
      throw new TException(e);
    }
  }
View Full Code Here

      try {
        SystemPropUtil.removeSystemProperty(property);
        updatePlugins(property);
      } catch (Exception e) {
        log.error("Problem removing config property in zookeeper", e);
        throw new TException(e.getMessage());
      }
    }
View Full Code Here

      try {
        SystemPropUtil.setSystemProperty(property, value);
        updatePlugins(property);
      } catch (Exception e) {
        log.error("Problem setting config property in zookeeper", e);
        throw new TException(e.getMessage());
      }
    }
View Full Code Here

            iface.revokeResource(args.handle, args.revoked, args.force);
          } else if (call instanceof processDeadNode_args) {
            processDeadNode_args args = (processDeadNode_args) call;
            iface.processDeadNode(args.handle, args.node);
          } else {
            throw new TException("Unhandled call " + call);
          }
        } catch (InterruptedException e) {
          // Check the running flag.
          continue;
        } catch (TException e) {
View Full Code Here

      protected grantResource_result getResult(
        Iface unused, grantResource_args args) throws TException {
        try {
          calls.put(args);
        } catch (InterruptedException e) {
          throw new TException(e);
        }
        return new grantResource_result();
      }
View Full Code Here

      protected revokeResource_result getResult(
        Iface unused, revokeResource_args args) throws TException {
        try {
          calls.put(args);
        } catch (InterruptedException e) {
          throw new TException(e);
        }
        return new revokeResource_result();
      }
View Full Code Here

      protected processDeadNode_result getResult(
        Iface unused, processDeadNode_args args) throws TException {
        try {
          calls.put(args);
        } catch (InterruptedException e) {
          throw new TException(e);
        }
        return new processDeadNode_result();
      }
View Full Code Here

TOP

Related Classes of org.apache.thrift.TException

Copyright © 2018 www.massapicom. 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.