Package org.apache.jackrabbit.ocm.exception

Examples of org.apache.jackrabbit.ocm.exception.VersionException


        try {
            this.session.save();
        } catch (NoSuchNodeTypeException nsnte) {
            throw new JcrMappingException("Cannot persist current session changes. An unknown node type was used.", nsnte);
        } catch (javax.jcr.version.VersionException ve) {
            throw new VersionException("Cannot persist current session changes. Attempt to overwrite checked-in node", ve);
        } catch (LockException le) {
            throw new ObjectContentManagerException("Cannot persist current session changes. Violation of a lock detected", le);
        } catch (RepositoryException e) {
            throw new ObjectContentManagerException("Cannot persist current session changes.", e);
        }
View Full Code Here


        } catch (javax.jcr.nodetype.ConstraintViolationException cve) {
            throw new ObjectContentManagerException("Cannot move the object from " + srcPath + " to " + destPath + "."
                    + " Violation of a nodetype or attempt to move under a property detected", cve);

        } catch (javax.jcr.version.VersionException ve) {
            throw new VersionException("Cannot move the object from " + srcPath + " to " + destPath + "." + " Parent node of source or destination is versionable and checked in ",
                    ve);

        } catch (javax.jcr.AccessDeniedException ade) {
            throw new ObjectContentManagerException("Cannot move the object from " + srcPath + " to " + destPath + "." + " Session does not have access permissions", ade);
View Full Code Here

        } catch (javax.jcr.nodetype.ConstraintViolationException cve) {
            throw new ObjectContentManagerException("Cannot copy the object from " + srcPath + " to " + destPath + "."
                    + "Violation of a nodetype or attempt to copy under property detected ", cve);

        } catch (javax.jcr.version.VersionException ve) {
            throw new VersionException("Cannot copy the object from " + srcPath + " to " + destPath + "." + "Parent node of source or destination is versionable and checked in ",
                    ve);

        } catch (javax.jcr.AccessDeniedException ade) {
            throw new ObjectContentManagerException("Cannot copy the object from " + srcPath + " to " + destPath + "." + " Session does not have access permissions", ade);
View Full Code Here

      return version.getCreated();
    }
    catch (RepositoryException e)
    {

      throw new VersionException("Error while retrieving the version creation date", e);
    }
  }
View Full Code Here

      return version.getUUID();
    }
    catch (RepositoryException e)
    {

      throw new VersionException("Error while retrieving the version UUID", e);
    }
  }
View Full Code Here

      return version.getPath();
    }
    catch (RepositoryException e)
    {

      throw new VersionException("Error while retrieving the version path", e);
    }
  }
View Full Code Here

     
    }
    catch (RepositoryException e)
    {

      throw new VersionException("Error while retrieving the version path", e);
    }
  } 
View Full Code Here

      return version.getCreated();
    }
    catch (RepositoryException e)
    {

      throw new VersionException("Error while retrieving the version creation date", e);
    }
  }
View Full Code Here

      return version.getIdentifier();
    }
    catch (RepositoryException e)
    {

      throw new VersionException("Error while retrieving the version UUID", e);
    }
  }
View Full Code Here

      return version.getPath();
    }
    catch (RepositoryException e)
    {

      throw new VersionException("Error while retrieving the version path", e);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.ocm.exception.VersionException

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.