Class NoSuchComponentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.osgi.service.blueprint.container.NoSuchComponentException
- All Implemented Interfaces:
Serializable
A Blueprint exception indicating that a component does not exist in a
Blueprint Container.
This exception is thrown when an attempt is made to create a component
instance or lookup Component Metadata using a component id that does not
exist in the Blueprint Container.
- Version:
- $Revision: 7556 $
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a No Such Component Exception for a non-existent component.NoSuchComponentException
(String msg, String id) Create a No Such Component Exception for a non-existent component. -
Method Summary
Modifier and TypeMethodDescriptionReturns the id of the non-existent component.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoSuchComponentException
Create a No Such Component Exception for a non-existent component.- Parameters:
msg
- The associated message.id
- The id of the non-existent component.
-
NoSuchComponentException
Create a No Such Component Exception for a non-existent component.- Parameters:
id
- The id of the non-existent component.
-
-
Method Details
-
getComponentId
Returns the id of the non-existent component.- Returns:
- The id of the non-existent component.
-