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: ParticlePropertyNotOrphanException.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.ParticlePropertyModel;
11:
12: public class ParticlePropertyNotOrphanException extends
13: ParticlePropertyException {
14: private static final long serialVersionUID = 5542499345158785324L;
15:
16: ParticlePropertyModel mProperty;
17:
18: public ParticlePropertyNotOrphanException(
19: ParticlePropertyModel property) {
20: super ("The particle property with name '" + property.getName()
21: + "' and type '" + property.getClass().getName()
22: + "', already belongs to a particle.");
23:
24: mProperty = property;
25: }
26:
27: public ParticlePropertyModel getParticleProperty() {
28: return mProperty;
29: }
30: }
|