KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > management > BadStringOperationException


1 /*
2  * @(#)BadStringOperationException.java 4.16 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.management;
9
10 /**
11  * Thrown when an invalid string operation is passed
12  * to a method for constructing a query.
13  *
14  * @since 1.5
15  */

16 public class BadStringOperationException extends Exception JavaDoc {
17
18
19     /* Serial version */
20     private static final long serialVersionUID = 7802201238441662100L;
21
22     /**
23      * @serial The description of the operation that originated this exception
24      */

25     private String JavaDoc op;
26
27     /**
28      * Constructs a <CODE>BadStringOperationException</CODE> with the specified detail
29      * message.
30      *
31      * @param message the detail message.
32      */

33     public BadStringOperationException(String JavaDoc message) {
34     this.op = message;
35     }
36  
37    
38     /**
39      * Returns the string representing the object.
40      */

41     public String JavaDoc toString() {
42     return "BadStringOperationException: " + op;
43     }
44       
45  }
46
Popular Tags