KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > management > BadAttributeValueExpException


1 /*
2  * @(#)BadAttributeValueExpException.java 4.17 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 /**
12  * Thrown when an invalid MBean attribute is passed to a query
13  * constructing method. This exception is used internally by JMX
14  * during the evaluation of a query. User code does not usually
15  * see it.
16  *
17  * @since 1.5
18  */

19 public class BadAttributeValueExpException extends Exception JavaDoc {
20
21
22     /* Serial version */
23     private static final long serialVersionUID = -3105272988410493376L;
24
25     /**
26      * @serial The attribute value that originated this exception
27      */

28     private Object JavaDoc val;
29
30     /**
31      * Constructs an <CODE>BadAttributeValueExpException</CODE> with the specified Object.
32      *
33      * @param val the inappropriate value.
34      */

35     public BadAttributeValueExpException (Object JavaDoc val) {
36     this.val = val;
37     }
38    
39  
40     /**
41      * Returns the string representing the object.
42      */

43     public String JavaDoc toString() {
44     return "BadAttributeValueException: " + val;
45     }
46
47  }
48
Popular Tags