01: /* JFox, the OpenSource J2EE Application Server
02: *
03: * Copyright (C) 2002 huihoo.org
04: * Distributable under GNU LGPL license
05: * See the GNU Lesser General Public License for more details.
06: */
07:
08: package javax.management;
09:
10: /**
11: * Thrown when an invalid MBean attribute is passed to a query constructing method.
12: *
13: * @author <a href="mailto:young_yy@hotmail.org">Young Yang</a>
14: */
15:
16: public class BadAttributeValueExpException extends Exception {
17:
18: private Object val;
19:
20: /**
21: * Constructs an <CODE>BadAttributeValueExpException</CODE> with the specified Object.
22: *
23: */
24: public BadAttributeValueExpException(Object val) {
25: this .val = val;
26: }
27:
28: /**
29: * Returns the string representing the object.
30: */
31: public String toString() {
32: return "BadAttributeValueException: " + val;
33: }
34:
35: }
|