/** * @see org.opencms.main.CmsException#createException(org.opencms.i18n.CmsMessageContainer, java.lang.Throwable) */ @Override public CmsException createException(CmsMessageContainer container, Throwable cause) { return new CmsVfsResourceAlreadyExistsException(container, cause); } }
cms.copyResource(sourcePath, targetPath); } catch (CmsVfsResourceAlreadyExistsException e) { throw new CmisNameConstraintViolationException(e.getLocalizedMessage(), e);
return newFolder.getStructureId().toString(); } catch (CmsVfsResourceAlreadyExistsException e) { throw new CmisNameConstraintViolationException(e.getLocalizedMessage(), e);
/** * @see org.opencms.main.CmsException#createException(org.opencms.i18n.CmsMessageContainer, java.lang.Throwable) */ @Override public CmsException createException(CmsMessageContainer container, Throwable cause) { return new CmsVfsResourceAlreadyExistsException(container, cause); } }
return newDocument.getStructureId().toString(); } catch (CmsVfsResourceAlreadyExistsException e) { throw new CmisNameConstraintViolationException(e.getLocalizedMessage(), e);
throw new CmsVfsResourceAlreadyExistsException(org.opencms.db.generic.Messages.get().container( org.opencms.db.generic.Messages.ERR_RESOURCE_WITH_NAME_ALREADY_EXISTS_1, resourcename));
throw new CmsVfsResourceAlreadyExistsException(org.opencms.db.generic.Messages.get().container( org.opencms.db.generic.Messages.ERR_RESOURCE_WITH_NAME_ALREADY_EXISTS_1, resourcename));
throw new CmsVfsResourceAlreadyExistsException( Messages.get().container( Messages.ERR_RESOURCE_WITH_NAME_ALREADY_EXISTS_1,
throw new CmsVfsResourceAlreadyExistsException(Messages.get().container( Messages.ERR_RESOURCE_WITH_NAME_ALREADY_EXISTS_1, dbc.removeSiteRoot(resourcePath)));
/** * Enumeration class for the mode parameter in the * {@link CmsDriverManager#readChangedResourcesInsideProject(CmsDbContext, CmsUUID, CmsReadChangedProjectResourceMode)} * method.<p> */ private static class CmsReadChangedProjectResourceMode { /** * Default constructor.<p> */ protected CmsReadChangedProjectResourceMode() { // noop } }
throw new CmsVfsResourceAlreadyExistsException(Messages.get().container(Messages.ERR_DEST_EXISTS_0));
throw new CmsVfsResourceAlreadyExistsException(Messages.get().container(Messages.ERR_DEST_EXISTS_0));
throw new CmsVfsResourceAlreadyExistsException(Messages.get().container(Messages.ERR_DEST_EXISTS_0));
throw new CmsVfsResourceAlreadyExistsException(Messages.get().container( Messages.ERR_MOVE_FAILED_TARGET_EXISTS_2, source,
throw new CmsVfsResourceAlreadyExistsException( Messages.get().container( Messages.ERR_MOVE_FAILED_TARGET_EXISTS_2,
throw new CmsVfsResourceAlreadyExistsException(Messages.get().container(Messages.ERR_DEST_EXISTS_0));
throw new CmsVfsResourceAlreadyExistsException(Messages.get().container(Messages.ERR_DEST_EXISTS_0));
throw new CmsVfsResourceAlreadyExistsException(Messages.get().container(Messages.ERR_DEST_EXISTS_0));
throw new CmsVfsResourceAlreadyExistsException( org.opencms.db.generic.Messages.get().container( org.opencms.db.generic.Messages.ERR_RESOURCE_WITH_NAME_ALREADY_EXISTS_1,
} else { throw new CmsVfsResourceAlreadyExistsException(Messages.get().container( Messages.ERR_RESOURCE_WITH_NAME_ALREADY_EXISTS_1, dbc.removeSiteRoot(resource.getRootPath())));