KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > tools > remote > proxy > RemoteMBeanProxyException


1 /*
2  * Copyright (C) The MX4J Contributors.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8
9 package mx4j.tools.remote.proxy;
10
11 import javax.management.JMRuntimeException JavaDoc;
12
13 /**
14  * @version $Revision: 1.3 $
15  */

16 public class RemoteMBeanProxyException extends JMRuntimeException JavaDoc
17 {
18    private final Exception JavaDoc exception;
19
20    public RemoteMBeanProxyException()
21    {
22       this(null, null);
23    }
24
25    public RemoteMBeanProxyException(String JavaDoc message)
26    {
27       this(message, null);
28    }
29
30    public RemoteMBeanProxyException(Exception JavaDoc exception)
31    {
32       this(null, exception);
33    }
34
35    public RemoteMBeanProxyException(String JavaDoc message, Exception JavaDoc exception)
36    {
37       super(message);
38       this.exception = exception;
39    }
40
41    public Throwable JavaDoc getCause()
42    {
43       return exception;
44    }
45 }
46
Popular Tags