Package org.osgi.service.component
Class ComponentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.osgi.service.component.ComponentException
- All Implemented Interfaces:
Serializable
Unchecked exception which may be thrown by Service Component Runtime.
- See Also:
-
Constructor Summary
ConstructorDescriptionComponentException
(String message) Construct a new ComponentException with the specified message.ComponentException
(String message, Throwable cause) Construct a new ComponentException with the specified message and cause.ComponentException
(Throwable cause) Construct a new ComponentException with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ComponentException
Construct a new ComponentException with the specified message and cause.- Parameters:
message
- The message for the exception.cause
- The cause of the exception. May benull
.
-
ComponentException
Construct a new ComponentException with the specified message.- Parameters:
message
- The message for the exception.
-
ComponentException
Construct a new ComponentException with the specified cause.- Parameters:
cause
- The cause of the exception. May benull
.
-
-
Method Details
-
getCause
Returns the cause of this exception ornull
if no cause was set. -
initCause
Initializes the cause of this exception to the specified value.- Overrides:
initCause
in classThrowable
- Parameters:
cause
- The cause of this exception.- Returns:
- This exception.
- Throws:
IllegalArgumentException
- If the specified cause is this exception.IllegalStateException
- If the cause of this exception has already been set.
-