org.chromium.sdk/src/org/chromium/sdk/internal/BrowserTabImpl.java
changeset 56 22f918ed49f7
parent 2 e4420d2515f1
child 276 f2f4a1259de8
equal deleted inserted replaced
55:bb6160d0b6f2 56:22f918ed49f7
     6 
     6 
     7 import java.io.IOException;
     7 import java.io.IOException;
     8 
     8 
     9 import org.chromium.sdk.Browser;
     9 import org.chromium.sdk.Browser;
    10 import org.chromium.sdk.BrowserTab;
    10 import org.chromium.sdk.BrowserTab;
       
    11 import org.chromium.sdk.ChromiumIOException;
    11 import org.chromium.sdk.DebugEventListener;
    12 import org.chromium.sdk.DebugEventListener;
    12 import org.chromium.sdk.TabDebugEventListener;
    13 import org.chromium.sdk.TabDebugEventListener;
    13 import org.chromium.sdk.internal.tools.ToolHandler;
    14 import org.chromium.sdk.internal.tools.ToolHandler;
    14 import org.chromium.sdk.internal.tools.ToolName;
    15 import org.chromium.sdk.internal.tools.ToolName;
    15 import org.chromium.sdk.internal.tools.ToolOutput;
    16 import org.chromium.sdk.internal.tools.ToolOutput;
    87     try {
    88     try {
    88       Result result;
    89       Result result;
    89       try {
    90       try {
    90         result = devToolSessionManager.attachToTab();
    91         result = devToolSessionManager.attachToTab();
    91       } catch (AttachmentFailureException e) {
    92       } catch (AttachmentFailureException e) {
    92         throw new IOException(e);
    93         throw new ChromiumIOException(e);
    93       }
    94       }
    94       if (Result.OK != result) {
    95       if (Result.OK != result) {
    95         throw new IOException("Failed to attach with result: " + result);
    96         throw new IOException("Failed to attach with result: " + result);
    96       }
    97       }
    97       normalExit = true;
    98       normalExit = true;