Package com.orientechnologies.orient.core.exception

Examples of com.orientechnologies.orient.core.exception.ODatabaseException


    try {
      synchronized (networkPool) {

        if (networkPool.size() == 0)
          throw new ODatabaseException("Connection is closed");
      }

    } finally {
      lock.releaseSharedLock();
    }
View Full Code Here


    return new ORecordId(clusterId, clusterPosition);
  }

  private void checkClusterLimits() {
    if (clusterId < -1)
      throw new ODatabaseException("RecordId can't support negative cluster id. You've used: " + clusterId);

    if (clusterId > CLUSTER_MAX)
      throw new ODatabaseException("RecordId can't support cluster id major than 32767. You've used: " + clusterId);
  }
View Full Code Here

      // SET DEFAULT PROPERTIES
      setProperty("fetch-max", 50);

    } catch (Throwable t) {
      throw new ODatabaseException("Error on opening database '" + iURL + "'", t);
    }
  }
View Full Code Here

      status = STATUS.OPEN;
    } catch (OException e) {
      // PASS THROUGH
      throw e;
    } catch (Exception e) {
      throw new ODatabaseException("Can't open database", e);
    }
    return (DB) this;
  }
View Full Code Here

        } catch (Throwable t) {
        }

      status = STATUS.OPEN;
    } catch (Exception e) {
      throw new ODatabaseException("Can't create database", e);
    }
    return (DB) this;
  }
View Full Code Here

      status = STATUS.CLOSED;
    } catch (OException e) {
      // PASS THROUGH
      throw e;
    } catch (Exception e) {
      throw new ODatabaseException("Can't delete database", e);
    }
  }
View Full Code Here

    try {
      return storage.readRecord(databaseOwner, iRid, iFetchPlan);

    } catch (Throwable t) {
      throw new ODatabaseException("Error on retrieving record " + iRid + " (cluster: "
          + storage.getPhysicalClusterNameById(iRid.clusterId) + ")", t);
    }
  }
View Full Code Here

      }
    } catch (OException e) {
      // PASS THROUGH
      throw e;
    } catch (Throwable t) {
      throw new ODatabaseException("Error on saving record " + iRid, t);
    }
  }
View Full Code Here

  protected void checkConnection() {
    lock.acquireSharedLock();

    try {
      if (networkPool.size() == 0)
        throw new ODatabaseException("Connection is closed");

    } finally {
      lock.releaseSharedLock();
    }
  }
View Full Code Here

  protected void checkConnection() {
    final boolean locked = lock.acquireSharedLock();

    try {
      if (networkPool.size() == 0)
        throw new ODatabaseException("Connection is closed");

    } finally {
      lock.releaseSharedLock(locked);
    }
  }
View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.core.exception.ODatabaseException

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.