8889909192939495969798
return true; } } catch (IOException e) { throw new DataException("Unable to read drag&drop data: " + e, e); } catch (UnsupportedFlavorException e) { // Can't happen because we only process known flavours which
9091929394959697
this.wareMap.put(id, ware); } } catch (final DocumentException e) { throw new DataException("Unable to read XML file: " + e, e); } }
8384858687888990
this.raceMap.put(id, race); } } catch (final DocumentException e) { throw new DataException("Unable to read XML file: " + e, e); } }
159160161162163164165166
this.factoryMap.put(id, factory); } } catch (final DocumentException e) { throw new DataException("Unable to read XML file: " + e, e); } }
8788899091929394
this.sunMap.put(percent, suns); } } catch (final DocumentException e) { throw new DataException("Unable to read XML file: " + e, e); } }
113114115116117118119120
* When no sun with specified percent was found. */ public Sun getSun(final int percent) { if (!this.sunMap.containsKey(percent)) throw new DataException("There are no " + percent + "% suns"); return this.sunMap.get(percent); }
.getTotalIceYield()); } } catch (final DocumentException e) { throw new DataException("Unable to read XML file: " + e, e); } }
9293949596979899
this.defaultGame = game; } } catch (final DocumentException e) { throw new DataException("Unable to read XML file: " + e, e); } }