All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jadex.bridge.service.search.ServiceNotFoundException Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 4.0.267
Show newest version
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();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy