jadex.bridge.ComponentNotFoundException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-platform-bridge Show documentation
Show all versions of jadex-platform-bridge Show documentation
Jadex bridge is a base package for kernels and platforms, i.e., it is used by both and provides commonly used interfaces and classes for active components and their management.
package jadex.bridge;
/**
* Thrown when a component was not found.
*/
public class ComponentNotFoundException extends RuntimeException
{
//-------- attributes --------
/** The component identifier. */
protected IComponentIdentifier cid;
//-------- constructors --------
/**
* Simple constructor for deserialization.
*/
public ComponentNotFoundException(String message)
{
super(message);
}
/**
* Create an component termination exception.
*/
public ComponentNotFoundException(IComponentIdentifier cid)
{
super(cid.getName());
this.cid = cid;
}
/**
* Create an component termination exception.
*/
public ComponentNotFoundException(IComponentIdentifier cid, String message)
{
super(cid.getName()+": "+message);
this.cid = cid;
}
//-------- methods --------
/**
* Get the component identifier.
* @return The component identifier.
*/
public IComponentIdentifier getComponentIdentifier()
{
return cid;
}
/**
* Get the component identifier.
*/
public void setComponentIdentifier(IComponentIdentifier cid)
{
this.cid = cid;
}
public void printStackTrace()
{
Thread.dumpStack();
super.printStackTrace();
}
}