設備斷開異常
public class DeviceDisconnectedException
extends DeviceNotAvailableException
java.lang.Object | |||
↳ | com.android.tradefed.error.HarnessException | ||
↳ | com.android.tradefed.device.DeviceNotAvailableException | ||
↳ | com.android.tradefed.device.DeviceDisconnectedException |
當裝置無法再透過其傳輸類型存取時拋出,例如,如果裝置不再透過 USB 或 TCP/IP 連線可見
概括
公共構造函數 | |
---|---|
DeviceDisconnectedException (String msg, String serial) | |
DeviceDisconnectedException (String msg, String serial, ErrorIdentifier errorId) | |
DeviceDisconnectedException (String msg, Throwable cause, String serial) | |
DeviceDisconnectedException (String msg, Throwable cause, String serial, ErrorIdentifier errorId) |
公共構造函數
設備斷開異常
public DeviceDisconnectedException (String msg, String serial)
建立一個DeviceUnresponsiveException
。
參數 | |
---|---|
msg | String :描述性訊息。 |
serial | String :相關裝置的序號。 |
設備斷開異常
public DeviceDisconnectedException (String msg, String serial, ErrorIdentifier errorId)
建立一個DeviceUnresponsiveException
。
參數 | |
---|---|
msg | String :描述性訊息。 |
serial | String :相關裝置的序號。 |
errorId | ErrorIdentifier :此錯誤的錯誤識別碼。 |
設備斷開異常
public DeviceDisconnectedException (String msg, Throwable cause, String serial)
建立一個DeviceUnresponsiveException
。
參數 | |
---|---|
msg | String :描述性訊息。 |
cause | Throwable :導致裝置不可用的根Throwable 。 |
serial | String :相關裝置的序號。 |
設備斷開異常
public DeviceDisconnectedException (String msg, Throwable cause, String serial, ErrorIdentifier errorId)
建立一個DeviceUnresponsiveException
。
參數 | |
---|---|
msg | String :描述性訊息。 |
cause | Throwable :導致裝置不可用的根Throwable 。 |
serial | String :相關裝置的序號。 |
errorId | ErrorIdentifier :此錯誤的錯誤識別碼。 |