KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > kernel > ServiceAlreadyRegisteredException


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.server.kernel;
10
11 /**
12  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
13  * @version $Revision: 1.1.1.1 $
14  */

15 public class ServiceAlreadyRegisteredException extends KernelException
16 {
17
18    private ServiceID id;
19
20    public ServiceAlreadyRegisteredException(ServiceID id)
21    {
22       super(id.toString() + " already registered");
23       this.id = id;
24    }
25
26    public ServiceAlreadyRegisteredException(Throwable JavaDoc cause, ServiceID id)
27    {
28       super(id.toString() + " already registered", cause);
29       this.id = id;
30    }
31
32    public ServiceID getID()
33    {
34       return id;
35    }
36 }
37
Popular Tags