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);
}
}