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

jadex.bridge.ServiceTerminatedException 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;

import jadex.bridge.service.IServiceIdentifier;


/**
 *  Thrown when operations are invoked after a service has been shut down.
 */
public class ServiceTerminatedException	extends RuntimeException
{
	//-------- attributes --------
	
	/** The service identifier. */
	protected IServiceIdentifier sid;
	
	//-------- constructors --------
	
	/**
	 *	Create a service termination exception.  
	 */
	public ServiceTerminatedException(IServiceIdentifier sid)
	{
		super(sid.getServiceName());
		this.sid = sid;
	}

	//-------- methods --------
	
	/**
	 *  Get the service identifier.
	 *  @return The service identifier.
	 */
	public IServiceIdentifier getServiceIdentifier()
	{
		return sid;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy