Package com.orientechnologies.common.exception

Examples of com.orientechnologies.common.exception.OException


  @Override
  public int hashCode() {
    try {
      return future.get().hashCode();
    } catch (Exception e) {
      throw new OException("Cannot retrieve the requested information", e);
    }
  }
View Full Code Here


  @Override
  public void lock(final boolean iExclusive) {
    try {
      future.get().lock(iExclusive);
    } catch (Exception e) {
      throw new OException("Cannot retrieve the requested information", e);
    }
  }
View Full Code Here

  @Override
  public void unlock() {
    try {
      future.get().unlock();
    } catch (Exception e) {
      throw new OException("Cannot retrieve the requested information", e);
    }
  }
View Full Code Here

  @Override
  public int compareTo(final OIdentifiable o) {
    try {
      return future.get().compareTo(o);
    } catch (Exception e) {
      throw new OException("Cannot retrieve the requested information", e);
    }
  }
View Full Code Here

  @Override
  public int compare(final OIdentifiable o1, final OIdentifiable o2) {
    try {
      return future.get().compare(o1, o2);
    } catch (Exception e) {
      throw new OException("Cannot retrieve the requested information", e);
    }
  }
View Full Code Here

  public T get() {
    try {
      return (T) future.get();
    } catch (Exception e) {
      throw new OException("Cannot retrieve the requested information", e);
    }
  }
View Full Code Here

  @Override
  public String toString() {
    try {
      return future.get().toString();
    } catch (Exception e) {
      throw new OException("Cannot retrieve the requested information", e);
    }
  }
View Full Code Here

  @Override
  public Iterable<Edge> getEdges(final Direction direction, final String... labels) {
    try {
      return future.get().getEdges(direction, labels);
    } catch (Exception e) {
      throw new OException("Cannot retrieve the requested information", e);
    }
  }
View Full Code Here

  @Override
  public Iterable<Vertex> getVertices(final Direction direction, final String... labels) {
    try {
      return future.get().getVertices(direction, labels);
    } catch (Exception e) {
      throw new OException("Cannot retrieve the requested information", e);
    }
  }
View Full Code Here

  @Override
  public VertexQuery query() {
    try {
      return future.get().query();
    } catch (Exception e) {
      throw new OException("Cannot retrieve the requested information", e);
    }
  }
View Full Code Here

TOP

Related Classes of com.orientechnologies.common.exception.OException

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.