Code example for FileNotFoundException

Methods: getMessage

0
		PackageIdentifier name = new PackageIdentifierTransient(docxFile.getName());
		 
		try { 
			return OpcPackage.load(name, new FileInputStream(docxFile), password );
		} catch (final FileNotFoundException e) {
			OpcPackage.log.error(e.getMessage(), e);
			throw new Docx4JException("Couldn't load file from " + docxFile.getAbsolutePath(), e);
		} 
	} 
 
	/** 
	 * Convenience method to create a WordprocessingMLPackage 
	 * or PresentationMLPackage 
	 * from an existing File (.docx/.docxm, .ppxtx or Flat OPC .xml). 
     * 
	 * @param docxFile 
	 *            The docx file 
	 * @param password 
	 *            The password, if the file is password protected (compound) 
	 *             
Experience pair programming with AI  Get Codota for Java