KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > remoting > SubsystemNotSupported


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

9 package org.jboss.remoting;
10
11 /**
12  * SubsystemNotSupported is raised by a ServerInvoker when the target subsystem is not
13  * supported on the target VM.
14  *
15  * @author <a HREF="mailto:jhaynie@vocalocity.net">Jeff Haynie</a>
16  * @version $Revision: 1.2 $
17  */

18 public class SubsystemNotSupported extends Exception JavaDoc
19 {
20    private String JavaDoc subsystem;
21    private InvokerLocator locator;
22
23    public SubsystemNotSupported(String JavaDoc subsystem, InvokerLocator locator)
24    {
25       super("Subsystem '" + subsystem + "' not supported on target VM (" + locator + ")");
26       this.subsystem = subsystem;
27       this.locator = locator;
28    }
29
30    public String JavaDoc getSubsystem()
31    {
32       return subsystem;
33    }
34
35    public InvokerLocator getLocator()
36    {
37       return locator;
38    }
39 }
40
Popular Tags