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 attempt is made to apply either of
12: * the following: A subquery expression to an MBean or a qualified attribute
13: * expression to an MBean of the wrong class.
14: *
15: * @author <a href="mailto:young_yy@hotmail.org">Young Yang</a>
16: */
17:
18: public class InvalidApplicationException extends Exception {
19:
20: private Object val;
21:
22: /**
23: * Constructs an <CODE>InvalidApplicationException</CODE> with the specified <CODE>Object</CODE>.
24: *
25: */
26: public InvalidApplicationException(Object val) {
27: this .val = val;
28: }
29:
30: /**
31: * Returns the string representing the object
32: */
33: public String toString() {
34: return "InvalidApplicationException: " + val;
35: }
36:
37: }
|