Package com.google.protobuf

Examples of com.google.protobuf.ServiceException


        } else {
          return ProtoUtil.FALSE;
        }
      } catch (Exception e) {
        LOG.error(e);
        throw new ServiceException(e);
      } finally {
        rlock.unlock();
      }
    }
View Full Code Here


      rlock.lock();
      try {
        return ProtoUtil.convertStrings(store.getAllDatabaseNames());
      } catch (Exception e) {
        LOG.error(e);
        throw new ServiceException(e);
      } finally {
        rlock.unlock();
      }
    }
View Full Code Here

        } else {
          throw new NoSuchDatabaseException(databaseName);
        }
      } catch (Exception e) {
        LOG.error(e);
        throw new ServiceException(e);
      } finally {
        rlock.unlock();
      }
    }
View Full Code Here

        } else {
          throw new NoSuchDatabaseException(databaseName);
        }
      } catch (Exception e) {
        LOG.error(e);
        throw new ServiceException(e);
      } finally {
        rlock.unlock();
      }
    }
View Full Code Here

        } else {
          throw new NoSuchDatabaseException(databaseName);
        }
      } catch (Exception e) {
        LOG.error(e);
        throw new ServiceException(e);
      } finally {
        rlock.unlock();
      }

    }
View Full Code Here

        } else {
          throw new NoSuchDatabaseException(databaseName);
        }
      } catch (Exception e) {
        LOG.error(e);
        throw new ServiceException(e);
      } finally {
        rlock.unlock();
      }
    }
View Full Code Here

        } else {
          throw new NoSuchDatabaseException(databaseName);
        }
      } catch (Exception e) {
        LOG.error(e);
        throw new ServiceException(e);
      } finally {
        rlock.unlock();
      }
    }
View Full Code Here

        }
        store.createIndex(indexDesc);
      } catch (Exception e) {
        LOG.error("ERROR : cannot add index " + indexDesc.getIndexName(), e);
        LOG.error(indexDesc);
        throw new ServiceException(e);
      } finally {
        rlock.unlock();
      }

      return BOOL_TRUE;
View Full Code Here

        }
        return call(client);
      } catch (IOException ioe) {
        exceptions.add(ioe);
        if(abort) {
          throw new ServiceException(ioe.getMessage(), ioe);
        }
        if (tries == numRetries - 1) {
          throw new ServiceException("Giving up after tries=" + tries, ioe);
        }
      } catch (Throwable t) {
        throw new ServiceException(t);
      } finally {
        afterCall();
        if(closeConn) {
          connPool.closeConnection(client);
        } else {
          connPool.releaseConnection(client);
        }
      }
      try {
        Thread.sleep(pause * (tries + 1));
      } catch (InterruptedException e) {
        Thread.currentThread().interrupt();
        throw new ServiceException("Giving up after tries=" + tries, e);
      }
    }
    return null;
  }
View Full Code Here

      try {
        return callFuture.get();
      } catch (Throwable t) {
        if(t instanceof ExecutionException) {
          ExecutionException ee = (ExecutionException)t;
          throw new ServiceException(ee.getCause());
        } else {
          throw new RemoteException(t);
        }
      }
    }
View Full Code Here

TOP

Related Classes of com.google.protobuf.ServiceException

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.