APIdia Launch Partner
Top Description Fields Constructors Methods
javax.management

public Class MBeanException

extends JMException
Class Inheritance
Known Direct Subclasses
javax.management.MBeanRegistrationException

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

Field Summary

Modifier and TypeField and Description
private Exception
private static final long

Constructor Summary

AccessConstructor and Description
public
MBeanException(Exception
the wrapped exception.
e
)

Creates an MBeanException that wraps the actual java.lang.Exception.

public
MBeanException(Exception
the wrapped exception.
e
,
String
the detail message.
message
)

Creates an MBeanException that wraps the actual java.lang.Exception with a detail message.

Method Summary

Modifier and TypeMethod and Description
public Throwable

Returns:

the wrapped exception.
getCause
()

Overrides java.lang.Throwable.getCause.

Return the actual Exception thrown.

public Exception

Returns:

the wrapped exception.
getTargetException
()

Return the actual Exception thrown.

Field Detail

exceptionback to summary
private Exception exception
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.management.JMException.serialVersionUID.

Constructor Detail

MBeanExceptionback to summary
public MBeanException(Exception e)

Creates an MBeanException that wraps the actual java.lang.Exception.

Parameters
e:Exception

the wrapped exception.

MBeanExceptionback to summary
public MBeanException(Exception e, String message)

Creates an MBeanException that wraps the actual java.lang.Exception with a detail message.

Parameters
e:Exception

the wrapped exception.

message:String

the detail message.

Method Detail

getCauseback to summary
public Throwable getCause()

Overrides java.lang.Throwable.getCause.

Return the actual Exception thrown.

Returns:Throwable

the wrapped exception.

getTargetExceptionback to summary
public Exception getTargetException()

Return the actual Exception thrown.

Returns:Exception

the wrapped exception.