collector = (ErrorCollector<Exception>)compound.getCollector(); } else { collector = new ErrorCollector<>(); compound = new CompoundBerliozException("Multiple errors thrown by generators", BerliozErrorID.GENERATOR_ERROR_MULTIPLE, collector); collector.collectQuietly(Level.ERROR, t != null? (Exception)t : ex); ex = compound; collector.collectQuietly(Level.ERROR, exception);
xml.openElement("collected-errors"); ErrorCollector<? extends Throwable> collector = ((CompoundBerliozException)throwable).getCollector(); for (CollectedError<? extends Throwable> collected : collector.getErrors()) { collected.toXML(xml);
xml.openElement("collected-errors"); ErrorCollector<? extends Throwable> collector = ((CompoundBerliozException)exception).getCollector(); for (CollectedError<? extends Throwable> collected : collector.getErrors()) { collected.toXML(xml);