Class NoSuchComponentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.osgi.service.blueprint.container.NoSuchComponentException
-
- All Implemented Interfaces:
java.io.Serializable
public class NoSuchComponentException extends java.lang.RuntimeException
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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NoSuchComponentException(java.lang.String id)
Create a No Such Component Exception for a non-existent component.NoSuchComponentException(java.lang.String msg, java.lang.String id)
Create a No Such Component Exception for a non-existent component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getComponentId()
Returns the id of the non-existent component.
-
-
-
Constructor Detail
-
NoSuchComponentException
public NoSuchComponentException(java.lang.String msg, java.lang.String id)
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
public NoSuchComponentException(java.lang.String id)
Create a No Such Component Exception for a non-existent component.- Parameters:
id
- The id of the non-existent component.
-
-