Top Description Fields Constructors Methods
javax.management

public Class RuntimeMBeanException

extends JMRuntimeException
Class Inheritance

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

Field Summary

Modifier and TypeField and Description
private RuntimeException
private static final long

Constructor Summary

AccessConstructor and Description
public
RuntimeMBeanException(RuntimeException
the wrapped exception.
e
)

Creates a RuntimeMBeanException that wraps the actual java.lang.RuntimeException.

public
RuntimeMBeanException(RuntimeException
the wrapped exception.
e
,
String
the detail message.
message
)

Creates a RuntimeMBeanException that wraps the actual java.lang.RuntimeException with a detailed message.

Method Summary

Modifier and TypeMethod and Description
public Throwable

Returns:

the wrapped RuntimeException.
getCause
()

Overrides java.lang.Throwable.getCause.

Returns the actual RuntimeException thrown.

public RuntimeException

Returns:

the wrapped RuntimeException.
getTargetException
()

Returns the actual RuntimeException thrown.

Field Detail

runtimeExceptionback to summary
private RuntimeException runtimeException
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.management.JMRuntimeException.serialVersionUID.

Constructor Detail

RuntimeMBeanExceptionback to summary
public RuntimeMBeanException(RuntimeException e)

Creates a RuntimeMBeanException that wraps the actual java.lang.RuntimeException.

Parameters
e:RuntimeException

the wrapped exception.

RuntimeMBeanExceptionback to summary
public RuntimeMBeanException(RuntimeException e, String message)

Creates a RuntimeMBeanException that wraps the actual java.lang.RuntimeException with a detailed message.

Parameters
e:RuntimeException

the wrapped exception.

message:String

the detail message.

Method Detail

getCauseback to summary
public Throwable getCause()

Overrides java.lang.Throwable.getCause.

Returns the actual RuntimeException thrown.

Returns:Throwable

the wrapped RuntimeException.

getTargetExceptionback to summary
public RuntimeException getTargetException()

Returns the actual RuntimeException thrown.

Returns:RuntimeException

the wrapped RuntimeException.