Package de.ailis.xadrian.exceptions

Examples of de.ailis.xadrian.exceptions.DataException


                    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
View Full Code Here


                this.wareMap.put(id, ware);
            }
        }
        catch (final DocumentException e)
        {
            throw new DataException("Unable to read XML file: " + e, e);
        }
    }
View Full Code Here

                this.raceMap.put(id, race);
            }
        }
        catch (final DocumentException e)
        {
            throw new DataException("Unable to read XML file: " + e, e);
        }
    }
View Full Code Here

                this.factoryMap.put(id, factory);
            }
        }
        catch (final DocumentException e)
        {
            throw new DataException("Unable to read XML file: " + e, e);
        }
    }
View Full Code Here

                this.sunMap.put(percent, suns);
            }
        }
        catch (final DocumentException e)
        {
            throw new DataException("Unable to read XML file: " + e, e);
        }
    }
View Full Code Here

     *             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);
    }
View Full Code Here

                    .getTotalIceYield());
            }
        }
        catch (final DocumentException e)
        {
            throw new DataException("Unable to read XML file: " + e, e);
        }
    }
View Full Code Here

                    this.defaultGame = game;
            }
        }
        catch (final DocumentException e)
        {
            throw new DataException("Unable to read XML file: " + e, e);
        }
    }
View Full Code Here

TOP

Related Classes of de.ailis.xadrian.exceptions.DataException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.