org.chromium.sdk/src/org/chromium/sdk/internal/BrowserImpl.java
changeset 276 f2f4a1259de8
parent 56 22f918ed49f7
--- a/org.chromium.sdk/src/org/chromium/sdk/internal/BrowserImpl.java	Thu Mar 18 11:10:35 2010 -0700
+++ b/org.chromium.sdk/src/org/chromium/sdk/internal/BrowserImpl.java	Thu Mar 18 11:56:59 2010 -0700
@@ -17,7 +17,6 @@
 
 import org.chromium.sdk.Browser;
 import org.chromium.sdk.BrowserTab;
-import org.chromium.sdk.ChromiumIOException;
 import org.chromium.sdk.TabDebugEventListener;
 import org.chromium.sdk.UnsupportedVersionException;
 import org.chromium.sdk.Version;
@@ -103,7 +102,7 @@
       try {
         serverVersionString = devToolsHandler.version(OPERATION_TIMEOUT_MS);
       } catch (TimeoutException e) {
-        throw new ChromiumIOException("Failed to get protocol version from remote", e);
+        throw JavascriptVmImpl.newIOException("Failed to get protocol version from remote", e);
       }
       if (serverVersionString == null) {
         throw new UnsupportedVersionException(BrowserImpl.PROTOCOL_VERSION, null);
@@ -292,7 +291,7 @@
         ticket = connectInternal();
       } catch (UnsupportedVersionException e) {
         // This exception should have happened on tab fetcher creation.
-        throw new ChromiumIOException("Unexpected version problem", e);
+        throw JavascriptVmImpl.newIOException("Unexpected version problem", e);
       }
 
       Session session = ticket.getSession();