try {
workspace.move(srcPath, destPath);
} 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);
} catch (javax.jcr.PathNotFoundException pnf) {
throw new ObjectContentManagerException("Cannot move the object from " + srcPath + " to " + destPath + "." + " Node at source or destination does not exist ", pnf);
} catch (javax.jcr.ItemExistsException ie) {
throw new ObjectContentManagerException("Cannot move the object from " + srcPath + " to " + destPath + "." + " It might already exist at destination path.", ie);
} catch (javax.jcr.lock.LockException le) {
throw new ObjectContentManagerException("Cannot move the object from " + srcPath + " to " + destPath + "." + "Violation of a lock detected", le);
} catch (javax.jcr.RepositoryException re) {
throw new ObjectContentManagerException("Cannot move the object from " + srcPath + " to " + destPath + ".", re);
}
}