Package com.orientechnologies.common.exception

Examples of com.orientechnologies.common.exception.OException


  @Override
  public Vertex getVertex(final Direction direction) throws IllegalArgumentException {
    try {
      return future.get().getVertex(direction);
    } catch (Exception e) {
      throw new OException("Cannot retrieve getVertex()", e);
    }
  }
View Full Code Here


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

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

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

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

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

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

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

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

  public void reload() {
    try {
      future.get().reload();
    } catch (Exception e) {
      throw new OException("Cannot reload current element", 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.