Top Description Fields Constructors Methods
org.osgi.service.component

public Class ComponentException

extends RuntimeException
Class Inheritance

Unchecked exception which may be thrown by Service Component Runtime.
Author
$Id: c8f5931a7aadfa3677dc779faecdb6121471a66e $

Field Summary

Modifier and TypeField and Description
pack-priv static final long

Constructor Summary

AccessConstructor and Description
public
ComponentException(String
The message for the exception.
message
,
Throwable
The cause of the exception. May be null.
cause
)

Construct a new ComponentException with the specified message and cause.

public
ComponentException(String
The message for the exception.
message
)

Construct a new ComponentException with the specified message.

public
ComponentException(Throwable
The cause of the exception. May be null.
cause
)

Construct a new ComponentException with the specified cause.

Method Summary

Modifier and TypeMethod and Description
public Throwable

Returns:

The cause of this exception or null if no cause was set.
getCause
()

Overrides java.lang.Throwable.getCause.

Returns the cause of this exception or null if no cause was set.

public Throwable

Returns:

This exception.
initCause
(Throwable
The cause of this exception.
cause
)

Overrides java.lang.Throwable.initCause.

Initializes the cause of this exception to the specified value.

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

ComponentExceptionback to summary
public ComponentException(String message, Throwable cause)

Construct a new ComponentException with the specified message and cause.

Parameters
message:String

The message for the exception.

cause:Throwable

The cause of the exception. May be null.

ComponentExceptionback to summary
public ComponentException(String message)

Construct a new ComponentException with the specified message.

Parameters
message:String

The message for the exception.

ComponentExceptionback to summary
public ComponentException(Throwable cause)

Construct a new ComponentException with the specified cause.

Parameters
cause:Throwable

The cause of the exception. May be null.

Method Detail

getCauseback to summary
public Throwable getCause()

Overrides java.lang.Throwable.getCause.

Returns the cause of this exception or null if no cause was set.

Returns:Throwable

The cause of this exception or null if no cause was set.

Annotations
@Override
initCauseback to summary
public Throwable initCause(Throwable cause)

Overrides java.lang.Throwable.initCause.

Initializes the cause of this exception to the specified value.

Parameters
cause:Throwable

The cause of this exception.

Returns:Throwable

This exception.

Annotations
@Override
Exceptions
IllegalArgumentException:
If the specified cause is this exception.
IllegalStateException:
If the cause of this exception has already been set.