/** * @see org.opencms.main.CmsException#createException(org.opencms.i18n.CmsMessageContainer, java.lang.Throwable) */ @Override public CmsException createException(CmsMessageContainer container, Throwable cause) { return new CmsSynchronizeException(container, cause); } }
/** * @see org.opencms.main.CmsException#createException(org.opencms.i18n.CmsMessageContainer, java.lang.Throwable) */ @Override public CmsException createException(CmsMessageContainer container, Throwable cause) { return new CmsSynchronizeException(container, cause); } }
throw new CmsSynchronizeException(Messages.get().container(Messages.ERR_EXISTENT_FILE_1, newFile.getPath())); fOut = new FileOutputStream(newFile); } else { throw new CmsSynchronizeException( Messages.get().container(Messages.ERR_CREATE_DIR_1, newFile.getPath())); throw new CmsSynchronizeException(Messages.get().container( Messages.ERR_CREATE_FILE_1, this.getClass().getName(),
throw new CmsSynchronizeException( Messages.get().container(Messages.ERR_EXISTENT_FILE_1, newFile.getPath())); fOut = new FileOutputStream(newFile); } else { throw new CmsSynchronizeException( Messages.get().container(Messages.ERR_CREATE_DIR_1, newFile.getPath())); throw new CmsSynchronizeException( Messages.get().container(Messages.ERR_CREATE_FILE_1, this.getClass().getName(), newFile.getPath()), e);
throw new CmsSynchronizeException(Messages.get().container(Messages.ERR_READ_SYNC_LIST_0), e); } finally {
throw new CmsSynchronizeException(Messages.get().container(Messages.ERR_READ_SYNC_LIST_0), e); } finally {
throw new CmsSynchronizeException(Messages.get().container(Messages.ERR_NO_RFS_DESTINATION_0)); throw new CmsSynchronizeException(Messages.get().container(Messages.ERR_NO_VFS_SOURCE_0));
if (!destinationFolder.exists() || !destinationFolder.isDirectory()) { throw new CmsSynchronizeException( Messages.get().container(Messages.ERR_RFS_DESTINATION_NOT_THERE_1, m_destinationPathInRfs)); throw new CmsSynchronizeException( Messages.get().container(Messages.ERR_RFS_DESTINATION_NO_WRITE_1, m_destinationPathInRfs)); m_cms = null; } else { throw new CmsSynchronizeException(Messages.get().container(Messages.ERR_INIT_SYNC_0));
throw new CmsSynchronizeException(Messages.get().container(Messages.ERR_NO_RFS_DESTINATION_0)); throw new CmsSynchronizeException(Messages.get().container(Messages.ERR_NO_VFS_SOURCE_0));
if (!destinationFolder.exists() || !destinationFolder.isDirectory()) { throw new CmsSynchronizeException(Messages.get().container( Messages.ERR_RFS_DESTINATION_NOT_THERE_1, m_destinationPathInRfs)); throw new CmsSynchronizeException(Messages.get().container( Messages.ERR_RFS_DESTINATION_NO_WRITE_1, m_destinationPathInRfs)); m_cms = null; } else { throw new CmsSynchronizeException(Messages.get().container(Messages.ERR_INIT_SYNC_0));
I_CmsReport.FORMAT_OK); } catch (IOException e) { throw new CmsSynchronizeException( Messages.get().container(Messages.ERR_READING_FILE_1, fsFile.getName()), e);
I_CmsReport.FORMAT_OK); } catch (IOException e) { throw new CmsSynchronizeException( Messages.get().container(Messages.ERR_READING_FILE_1, fsFile.getName()), e);
vfsFile.setContents(CmsFileUtil.readFile(fsFile)); } catch (IOException e) { throw new CmsSynchronizeException(Messages.get().container(Messages.ERR_IMPORT_1, fsFile.getName()));
vfsFile.setContents(CmsFileUtil.readFile(fsFile)); } catch (IOException e) { throw new CmsSynchronizeException(Messages.get().container(Messages.ERR_IMPORT_1, fsFile.getName()));
writeFileByte(vfsFile.getContents(), fsFile); } catch (IOException e) { throw new CmsSynchronizeException(Messages.get().container(Messages.ERR_WRITE_FILE_0)); throw new CmsSynchronizeException(e.getMessageContainer(), e);
writeFileByte(vfsFile.getContents(), fsFile); } catch (IOException e) { throw new CmsSynchronizeException(Messages.get().container(Messages.ERR_WRITE_FILE_0)); throw new CmsSynchronizeException(e.getMessageContainer(), e);