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: ParticlePropertyInvalidRemovalException.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: import com.uwyn.rife.gui.model.ParticlePropertyModel;
12:
13: public class ParticlePropertyInvalidRemovalException extends
14: ParticlePropertyException {
15: private static final long serialVersionUID = -3357184063144577955L;
16:
17: ParticleModel mParticle;
18: ParticlePropertyModel mProperty;
19:
20: public ParticlePropertyInvalidRemovalException(
21: ParticleModel particle, ParticlePropertyModel property) {
22: super ("The particle property with name '" + property.getName()
23: + "' and type '" + property.getClass().getName()
24: + "', can't be removed from the particle.");
25:
26: mParticle = particle;
27: mProperty = property;
28: }
29:
30: public ParticleModel getParticle() {
31: return mParticle;
32: }
33:
34: public ParticlePropertyModel getParticleProperty() {
35: return mProperty;
36: }
37: }
|