01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: ParticleChildAlreadyPresentException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.gui.model.exceptions;
09:
10: import com.uwyn.rife.gui.model.ParticleModel;
11:
12: public class ParticleChildAlreadyPresentException extends
13: ParticlePropertyException {
14: private static final long serialVersionUID = -7194922042980567149L;
15:
16: ParticleModel mParent;
17: ParticleModel mChild;
18:
19: public ParticleChildAlreadyPresentException(ParticleModel parent,
20: ParticleModel child) {
21: super (
22: "The child particle couldn't be added to its parent since an equal sibling exists.");
23:
24: mParent = parent;
25: mChild = child;
26: }
27:
28: public ParticleModel getParent() {
29: return mParent;
30: }
31:
32: public ParticleModel getChild() {
33: return mChild;
34: }
35: }
|