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