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: SourceBeanRequiredException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.tools.exceptions;
09:
10: public class SourceBeanRequiredException extends RuntimeException {
11: private static final long serialVersionUID = -8331911446024868930L;
12:
13: private Class mBeanClass = null;
14:
15: public SourceBeanRequiredException(Class beanClass) {
16: super (
17: "It's required to set the source bean before accessing property change support functionalities in class '"
18: + beanClass.getName() + "'.");
19: mBeanClass = beanClass;
20: }
21:
22: public Class getBeanClass() {
23: return mBeanClass;
24: }
25: }
|