ErrorCollector<Exception> collector; if (compound != null) { collector = (ErrorCollector<Exception>)compound.getCollector(); } else { collector = new ErrorCollector<>(); compound = new CompoundBerliozException("Multiple errors thrown by generators", BerliozErrorID.GENERATOR_ERROR_MULTIPLE, collector);
ErrorCollector<? extends Throwable> collector = ((CompoundBerliozException)throwable).getCollector(); for (CollectedError<? extends Throwable> collected : collector.getErrors()) { collected.toXML(xml);
throw new CompoundBerliozException("Unable to parse services configuration file.", ex, id, collector); } catch (IOException ex) { LOGGER.error("An I/O error occurred while reading XML service configuration: {}", ex.getMessage());
ErrorCollector<? extends Throwable> collector = ((CompoundBerliozException)exception).getCollector(); for (CollectedError<? extends Throwable> collected : collector.getErrors()) { collected.toXML(xml);