KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)JMXProviderException.java 1.11 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 import java.util.Map JavaDoc;
13
14 /**
15  * <p>Exception thrown by {@link JMXConnectorFactory} when a provider
16  * exists for the required protocol but cannot be used for some
17  * reason.</p>
18  *
19  * @see JMXConnectorFactory#connect(JMXServiceURL, Map)
20  * @since 1.5
21  * @since.unbundled 1.0
22  */

23 public class JMXProviderException extends IOException JavaDoc {
24
25     private static final long serialVersionUID = -3166703627550447198L;
26
27     /**
28      * <p>Constructs a <code>JMXProviderException</code> with no
29      * specified detail message.</p>
30      */

31     public JMXProviderException() {
32     }
33
34     /**
35      * <p>Constructs a <code>JMXProviderException</code> with the
36      * specified detail message.</p>
37      *
38      * @param message the detail message
39      */

40     public JMXProviderException(String JavaDoc message) {
41     super(message);
42     }
43
44     /**
45      * <p>Constructs a <code>JMXProviderException</code> with the
46      * specified detail message and nested exception.</p>
47      *
48      * @param message the detail message
49      * @param cause the nested exception
50      */

51     public JMXProviderException(String JavaDoc message, Throwable JavaDoc cause) {
52     super(message);
53     this.cause = cause;
54     }
55
56     public Throwable JavaDoc getCause() {
57     return cause;
58     }
59
60     /**
61      * @serial An exception that caused this exception to be thrown.
62      * This field may be null.
63      * @see #getCause()
64      **/

65     private Throwable JavaDoc cause = null;
66 }
67
Popular Tags