Package com.orientechnologies.orient.core.exception

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


      if (previous != null) {
        if (previous instanceof RuntimeException)
          throw (RuntimeException) previous;
        else
          throw new ODatabaseException("Generic error, see the underlying cause", previous);
      } else
        throw new ONetworkProtocolException("Network response error: " + buffer.toString());

    } else {
      // PROTOCOL ERROR
View Full Code Here


      total = new OPhysicalPosition(0, -1, (byte) 0);
      map.put(new Long(-1), total);

    } catch (Exception e) {
      throw new ODatabaseException("Error on creating internal map for logical cluster: " + iName, e);
    }
    map.save();
  }
View Full Code Here

      if (total == null) {
        total = new OPhysicalPosition(0, map.size(), (byte) 0);
        map.put(new Long(-1), total);
      }
    } catch (Exception e) {
      throw new ODatabaseException("Error on load internal map for logical cluster: " + name, e);
    }
  }
View Full Code Here

      setProperty("fetch-max", 50);

      useCache = OGlobalConfiguration.DB_USE_CACHE.getValueAsBoolean();

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

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

      level1Cache.startup();

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

        } catch (Throwable t) {
        }

      status = STATUS.CLOSED;
    } 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

        return storage.updateRecord(iRid, iContent, iVersion, iRecordType);
      }
    } catch (OConcurrentModificationException e) {
      throw e;
    } catch (Throwable t) {
      throw new ODatabaseException("Error on saving record #" + iRid, t);
    }
  }
View Full Code Here

    return (DBTYPE) underlying;
  }

  protected void checkOpeness() {
    if (isClosed())
      throw new ODatabaseException("Database is closed. Open it before to use.");
  }
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.