/** * Thrown proper exception for given errors. */ private static void reportErrors(StringBuffer errs, String resource, Throwable nested) { if (errs == null) return; throw (MissingResourceException) JavaVersions.initCause (new MissingResourceException(errs.toString(), ProductDerivations.class.getName(), resource), nested); }
throw (MissingResourceException) JavaVersions.initCause (new MissingResourceException(rsrc, ProductDerivations.class.getName(), rsrc), err);
reportErrors(errs, aPath, err); String rsrc = aPath + "#" + anchor; throw (MissingResourceException) JavaVersions.initCause (new MissingResourceException(rsrc, ProductDerivations.class.getName(), rsrc), err);
} catch (SAXException se) { IOException ioe = new IOException(se.toString()); JavaVersions.initCause(ioe, se); throw ioe; } finally {