--- a/org.chromium.sdk/src/org/chromium/sdk/internal/transport/Handshaker.java Thu Mar 18 11:10:35 2010 -0700
+++ b/org.chromium.sdk/src/org/chromium/sdk/internal/transport/Handshaker.java Thu Mar 18 11:56:59 2010 -0700
@@ -11,8 +11,8 @@
import java.util.concurrent.Future;
import java.util.concurrent.FutureTask;
-import org.chromium.sdk.ChromiumIOException;
import org.chromium.sdk.LineReader;
+import org.chromium.sdk.internal.JavascriptVmImpl;
import org.chromium.sdk.internal.transport.Message.MalformedMessageException;
/**
@@ -100,7 +100,7 @@
} catch (InterruptedException e) {
throw new RuntimeException(e);
} catch (ExecutionException e) {
- throw new ChromiumIOException("Failed to perform handshake", e);
+ throw JavascriptVmImpl.newIOException("Failed to perform handshake", e);
}
}
@@ -111,7 +111,7 @@
try {
message = Message.fromBufferedReader(input);
} catch (MalformedMessageException e) {
- throw new ChromiumIOException("Unrecognized handshake message from remote", e);
+ throw JavascriptVmImpl.newIOException("Unrecognized handshake message from remote", e);
}
if (message == null) {
throw new IOException("End of stream");