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 expression is passed to
12: * a method for constructing a query.
13: *
14: * @author <a href="mailto:young_yy@hotmail.org">Young Yang</a>
15: */
16:
17: public class BadBinaryOpValueExpException extends Exception {
18:
19: private ValueExp exp;
20:
21: /**
22: * Constructs a <CODE>BadBinaryOpValueExpException</CODE> with the specified <CODE>ValueExp</CODE>.
23: *
24: */
25: public BadBinaryOpValueExpException(ValueExp exp) {
26: this .exp = exp;
27: }
28:
29: /**
30: * Returns the <CODE>ValueExp</CODE> that originated the exception.
31: */
32: public ValueExp getExp() {
33: return exp;
34: }
35:
36: /**
37: * Returns the string representing the object.
38: */
39: public String toString() {
40: return "BadBinaryOpValueExpException: " + exp;
41: }
42:
43: }
|