[clusterfest commit] r230 - in trunk: lib src/com/flaptor/clusterfest

0 views
Skip to first unread message

codesite...@google.com

unread,
Jul 17, 2008, 3:22:19 PM7/17/08
to clust...@googlegroups.com
Author: martinmassera
Date: Thu Jul 17 12:21:24 2008
New Revision: 230

Modified:
trunk/lib/flaptor-util-trunk.jar
trunk/src/com/flaptor/clusterfest/NodeDescriptor.java

Log:
now distinguishing between remote and local unexpected errors

Modified: trunk/lib/flaptor-util-trunk.jar
==============================================================================
Binary files. No diff available.

Modified: trunk/src/com/flaptor/clusterfest/NodeDescriptor.java
==============================================================================
--- trunk/src/com/flaptor/clusterfest/NodeDescriptor.java (original)
+++ trunk/src/com/flaptor/clusterfest/NodeDescriptor.java Thu Jul 17
12:21:24 2008
@@ -22,6 +22,7 @@
import com.flaptor.clusterfest.exceptions.NodeCodeException;
import com.flaptor.clusterfest.exceptions.NodeException;
import com.flaptor.clusterfest.exceptions.NodeUnreachableException;
+import com.flaptor.util.remote.RemoteHostCodeException;
import com.flaptor.util.remote.RpcConnectionException;
import com.flaptor.util.remote.XmlrpcClient;

@@ -108,6 +109,8 @@
*/
public void checkAndThrow(Throwable t) throws NodeException {
if (t instanceof RpcConnectionException) throw new
NodeUnreachableException(this, t);
- else throw new NodeCodeException(this, t);
+ else if (t instanceof RemoteHostCodeException) throw new
NodeCodeException(this, t);
+ else if (t instanceof RuntimeException) throw (RuntimeException)t;
+ else throw new RuntimeException("unexpected exception", t);
}
}

Reply all
Reply to author
Forward
0 new messages