Package com.facebook.thrift

Examples of com.facebook.thrift.TApplicationException


        return db.getTables(pattern);
      } catch(MetaException e) {
        this.incrementCounter("exceptions");
        LOG.error("Got exception in get_tables: " + e.getMessage());
        e.printStackTrace();
        throw new TApplicationException("MetaException getting tables:" + e.getMessage());
      } catch(RuntimeException e) {
        LOG.fatal("get_tables got a runtime exception: " + e.getMessage());
        MetaStoreUtils.printStackTrace(e);
        throw new MetaException("get_tables had an internal Java RuntimeException: " + e.getMessage());
      }
View Full Code Here


        return new FileStore(conf_).getDatabases();
      } catch(MetaException e) {
        this.incrementCounter("exceptions");
        LOG.error("Got exception in get_dbs: " + e.getMessage());
        e.printStackTrace();
        throw new TApplicationException("MetaException getting dbs:" + e.getMessage());
      } catch(RuntimeException e) {
        LOG.fatal("get_dbs got a runtime exception: " + e.getMessage());
        MetaStoreUtils.printStackTrace(e);
        throw new MetaException("get_dbs had an internal Java RuntimeException: " + e.getMessage());
      }
View Full Code Here

        return db.getTables(pattern);
      } catch(MetaException e) {
        this.incrementCounter("exceptions");
        LOG.error("Got exception in get_tables: " + e.getMessage());
        e.printStackTrace();
        throw new TApplicationException("MetaException getting tables:" + e.getMessage());
      } catch(RuntimeException e) {
        LOG.fatal("get_tables got a runtime exception: " + e.getMessage());
        MetaStoreUtils.printStackTrace(e);
        throw new MetaException("get_tables had an internal Java RuntimeException: " + e.getMessage());
      }
View Full Code Here

        return new FileStore(conf_).getDatabases();
      } catch(MetaException e) {
        this.incrementCounter("exceptions");
        LOG.error("Got exception in get_dbs: " + e.getMessage());
        e.printStackTrace();
        throw new TApplicationException("MetaException getting dbs:" + e.getMessage());
      } catch(RuntimeException e) {
        LOG.fatal("get_dbs got a runtime exception: " + e.getMessage());
        MetaStoreUtils.printStackTrace(e);
        throw new MetaException("get_dbs had an internal Java RuntimeException: " + e.getMessage());
      }
View Full Code Here

   * Helper method to throw an error back to the endpoint
   */
  public void notifyEndpoint(String msg) throws TException {
    if (proto != null) {
      writeMessageBegin(new TMessage("", TMessageType.EXCEPTION, 0));
      TApplicationException ex =
        new TApplicationException(msg);
      ex.write(this);
      writeMessageEnd();
      trans_.flush();
    }
  }
View Full Code Here

TOP

Related Classes of com.facebook.thrift.TApplicationException

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.