Package com.orientechnologies.common.exception

Examples of com.orientechnologies.common.exception.OException


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


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

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

  @Override
  public OrientVertex getVertexInstance() {
    try {
      return future.get();
    } catch (Exception e) {
      throw new OException("Cannot get the underlying future content", e);
    }
  }
View Full Code Here

  @Override
  public OrientVertexType getType() {
    try {
      return future.get().getType();
    } catch (Exception e) {
      throw new OException("Cannot get the underlying future content", e);
    }
  }
View Full Code Here

    if (flushFuture != null) {
      try {
        flushFuture.get();
      } catch (InterruptedException e) {
        Thread.interrupted();
        throw new OException("File flush was interrupted", e);
      } catch (Exception e) {
        throw new OException("File flush was abnormally terminated", e);
      }
    }
  }
View Full Code Here

    } catch (RuntimeException e) {
      OLogManager.instance().error(this, "Error during context close for db " + url, e);
      throw e;
    } catch (Exception e) {
      OLogManager.instance().error(this, "Error during context close for db " + url, e);
      throw new OException("Error during context close for db " + url, e);
    } finally {
      try {
        database.close();
      } catch (Exception e) {
        OLogManager.instance().error(this, "Error during context close for db " + url, e);
View Full Code Here

          e = (Throwable) c.newInstance(iMessage);

        if (e instanceof RuntimeException)
          rootException = (RuntimeException) e;
        else
          rootException = new OException(e);
      } catch (InstantiationException ignored) {
      } catch (IllegalAccessException ignored) {
      } catch (InvocationTargetException ignored) {
      }
View Full Code Here

      return iCallable.call(this);
    } catch (Exception e) {
      if (e instanceof RuntimeException)
        throw (RuntimeException) e;
      else
        throw new OException(e);
    } finally {
      if (committed)
        autoStartTransaction();
    }
  }
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.