FileDocCategorySizeDatePackage
MBeanException.javaAPI DocJava SE 5 API1721Fri Aug 26 14:57:32 BST 2005javax.management

MBeanException

public class MBeanException extends JMException
Represents "user defined" exceptions thrown by MBean methods in the agent. It "wraps" the actual "user defined" exception thrown. This exception will be built by the MBeanServer when a call to an MBean method results in an unknown exception.
since
1.5

Fields Summary
private static final long
serialVersionUID
private Exception
exception
Constructors Summary
public MBeanException(Exception e)
Creates an MBeanException that wraps the actual java.lang.Exception.

param
e the wrapped exception.

   

                      
        
	super() ;
	exception = e ;
    
public MBeanException(Exception e, String message)
Creates an MBeanException that wraps the actual java.lang.Exception with a detail message.

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

 
	super(message) ;
	exception = e ;
    
Methods Summary
public java.lang.ThrowablegetCause()
Return the actual {@link Exception} thrown.

return
the wrapped exception.

	return exception;
    
public java.lang.ExceptiongetTargetException()
Return the actual {@link Exception} thrown.

return
the wrapped exception.

 
	return exception;