/* * Copyright 2001-2008 Geert Bevin <gbevin[remove] at uwyn dot com> * Licensed under the Apache License, Version 2.0 (the "License") * $Id: ParticlePropertyInvalidRemovalException.java 3918 2008-04-14 17:35:35Z gbevin $ */ package com.uwyn.rife.gui.model.exceptions; import com.uwyn.rife.gui.model.ParticleModel; import com.uwyn.rife.gui.model.ParticlePropertyModel; public class ParticlePropertyInvalidRemovalException extends ParticlePropertyException { private static final long serialVersionUID = -3357184063144577955L; ParticleModel mParticle; ParticlePropertyModel mProperty; public ParticlePropertyInvalidRemovalException(ParticleModel particle, ParticlePropertyModel property) { super("The particle property with name '"+property.getName()+"' and type '"+property.getClass().getName()+"', can't be removed from the particle."); mParticle = particle; mProperty = property; } public ParticleModel getParticle() { return mParticle; } public ParticlePropertyModel getParticleProperty() { return mProperty; } }