KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > management > remote > JMXServerErrorException


1 /*
2  * @(#)JMXServerErrorException.java 1.10 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
9 package javax.management.remote;
10
11 import java.io.IOException JavaDoc;
12
13 // imports for javadoc
14
import javax.management.MBeanServer JavaDoc;
15
16 /**
17  * Exception thrown as the result of a remote {@link MBeanServer}
18  * method invocation when an <code>Error</code> is thrown while
19  * processing the invocation in the remote MBean server. A
20  * <code>JMXServerErrorException</code> instance contains the original
21  * <code>Error</code> that occurred as its cause.
22  *
23  * @see java.rmi.ServerError
24  * @since 1.5
25  * @since.unbundled 1.0
26  */

27 public class JMXServerErrorException extends IOException JavaDoc {
28
29     private static final long serialVersionUID = 3996732239558744666L;
30
31     /**
32      * Constructs a <code>JMXServerErrorException</code> with the specified
33      * detail message and nested error.
34      *
35      * @param s the detail message.
36      * @param err the nested error. An instance of this class can be
37      * constructed where this parameter is null, but the standard
38      * connectors will never do so.
39      */

40     public JMXServerErrorException(String JavaDoc s, Error JavaDoc err) {
41     super(s);
42     cause = err;
43     }
44
45     public Throwable JavaDoc getCause() {
46     return cause;
47     }
48
49     /**
50      * @serial An {@link Error} that caused this exception to be thrown.
51      * @see #getCause()
52      **/

53     private final Error JavaDoc cause;
54 }
55
Popular Tags