KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > cache > rpc > NoHandlerForRPCException


1 package org.jboss.cache.rpc;
2
3 import org.jgroups.Address;
4
5 /**
6  * Exception returned when
7  * {@link RpcTreeCache#_dispatchRpcCall(String, org.jboss.cache.marshall.MethodCall)}
8  * is passed a call for an unregistered handler.
9  *
10  * @author <a HREF="mailto://brian.stansberry@jboss.com">Brian Stansberry</a>
11  * @version $Revision$
12  */

13 public class NoHandlerForRPCException extends Exception JavaDoc
14 {
15    /** The serialVersionUID */
16    private static final long serialVersionUID = 1L;
17
18    private Address nodeAddress;
19    
20    public NoHandlerForRPCException(String JavaDoc msg)
21    {
22       super(msg);
23    }
24
25    public NoHandlerForRPCException(String JavaDoc message, Address failedNode)
26    {
27       super(message);
28       this.nodeAddress = failedNode;
29    }
30
31    public Address getNodeAddress()
32    {
33       return nodeAddress;
34    }
35
36    public void setNodeAddress(Address failedNode)
37    {
38       this.nodeAddress = failedNode;
39    }
40    
41    
42
43 }
44
Popular Tags