/**
*
*/
package net.catpad.infobus;
/**
* This is thrown when a user attempts to start a new service thread
* having the same id as one of the services already running.
*
* @author Michael Gertelman
*
*/
public class ServiceThreadAlreadyRunningException extends Exception {
private static final long serialVersionUID = 1L;
private ServiceId id;
public ServiceThreadAlreadyRunningException(ServiceId id) {
this.id = id;
}
public String getMessage() {
return "Service thread with id " + id.toString() + " is already running";
}
}
|