Package org.fcrepo.server.errors

Examples of org.fcrepo.server.errors.LowlevelStorageInconsistencyException


            if (paths == 0) {
                throw new ObjectNotInLowlevelStorageException("no path in db registry for ["
                        + pid + "]");
            }
            if (paths > 1) {
                throw new LowlevelStorageInconsistencyException("[" + pid
                        + "] in db registry -multiple- times");
            }
            if (path == null || path.length() == 0) {
                throw new LowlevelStorageInconsistencyException("[" + pid
                        + "] has -null- path in db registry");
            }
        } catch (SQLException e1) {
            throw new LowlevelStorageException(true, "sql failure (get)", e1);
        } finally {
View Full Code Here


        int updateCount = statement.getUpdateCount();
        if (updateCount == 0) {
          throw new ObjectNotInLowlevelStorageException("Object not found in low-level storage: -no- rows updated in db registry");
        }
        if (updateCount > 1) {
          throw new LowlevelStorageInconsistencyException("-multiple- rows updated in db registry");
        }
        } catch (SQLException e1) {
            throw new LowlevelStorageException(true, "sql failurex (exec)", e1);
        }
    }
View Full Code Here

        } catch (ObjectNotInLowlevelStorageException e1) {
            throw new ObjectNotInLowlevelStorageException("[" + pid
                    + "] not in db registry to delete", e1);
        } catch (LowlevelStorageInconsistencyException e2) {
            throw new LowlevelStorageInconsistencyException("[" + pid
                    + "] deleted from db registry -multiple- times", e2);
        }
    }
View Full Code Here

            statement = connection.createStatement();
            rs = statement.executeQuery(selectAllQuery);
            while (rs.next()) {
                String key = rs.getString(1);
                if (null == key || 0 == key.length()) {
                    throw new LowlevelStorageInconsistencyException(
                        "Null token found in " + getRegistryName());
                }
                writer.println(key);
            }
            writer.close();
View Full Code Here

TOP

Related Classes of org.fcrepo.server.errors.LowlevelStorageInconsistencyException

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.