jadex.bridge.service.search.ServiceNotFoundException 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.service.search;
/**
* Exception to denote that a requested service was not found.
*/
public class ServiceNotFoundException extends RuntimeException
{
/** The failed query. */
protected ServiceQuery> query;
/**
* Create a new service not found exception.
*/
public ServiceNotFoundException()
{
}
/**
* Create a new service not found exception.
*/
public ServiceNotFoundException(ServiceQuery> query)
{
this(""+query);
this.query = query;
//if(message!=null && message.indexOf("chat")!=-1)
// System.out.println("gotcha");
}
/**
* Create a new service not found exception.
*/
public ServiceNotFoundException(String message)
{
super(message);
//if(message!=null && message.indexOf("chat")!=-1)
// System.out.println("gotcha");
}
/**
* Get the failed query, if any.
*/
public ServiceQuery> getQuery()
{
return query;
}
/**
* Set the query.
* @param query The query.
*/
public void setQuery(ServiceQuery> query)
{
this.query = query;
}
public void printStackTrace()
{
//Thread.dumpStack();
super.printStackTrace();
}
}