FileDocCategorySizeDatePackage
RuntimeMBeanException.javaAPI DocJava SE 5 API1932Fri Aug 26 14:57:34 BST 2005javax.management

RuntimeMBeanException

public class RuntimeMBeanException extends JMRuntimeException
Represents runtime exceptions thrown by MBean methods in the agent. It "wraps" the actual java.lang.RuntimeException exception thrown. This exception will be built by the MBeanServer when a call to an MBean method throws a runtime exception.
since
1.5

Fields Summary
private static final long
serialVersionUID
private RuntimeException
runtimeException
Constructors Summary
public RuntimeMBeanException(RuntimeException e)
Creates a RuntimeMBeanException that wraps the actual java.lang.RuntimeException.

param
e the wrapped exception.

    

                         
       
	super() ;
	runtimeException = e ;
    
public RuntimeMBeanException(RuntimeException e, String message)
Creates a RuntimeMBeanException that wraps the actual java.lang.RuntimeException with a detailed message.

param
e the wrapped exception.
param
message the detail message.

 
	super(message) ;
	runtimeException = e ;
    
Methods Summary
public java.lang.ThrowablegetCause()
Returns the actual {@link RuntimeException} thrown.

return
the wrapped {@link RuntimeException}.

	return runtimeException;
    
public java.lang.RuntimeExceptiongetTargetException()
Returns the actual {@link RuntimeException} thrown.

return
the wrapped {@link RuntimeException}.

 
	return runtimeException ;