1 8 9 package mx4j.tools.remote.proxy; 10 11 import javax.management.JMRuntimeException ; 12 13 16 public class RemoteMBeanProxyException extends JMRuntimeException 17 { 18 private final Exception exception; 19 20 public RemoteMBeanProxyException() 21 { 22 this(null, null); 23 } 24 25 public RemoteMBeanProxyException(String message) 26 { 27 this(message, null); 28 } 29 30 public RemoteMBeanProxyException(Exception exception) 31 { 32 this(null, exception); 33 } 34 35 public RemoteMBeanProxyException(String message, Exception exception) 36 { 37 super(message); 38 this.exception = exception; 39 } 40 41 public Throwable getCause() 42 { 43 return exception; 44 } 45 } 46 | Popular Tags |