目標設置錯誤
public class TargetSetupError
extends HarnessException
java.lang.Object | ||
↳ | com.android.tradefed.error.HarnessException | |
↳ | com.android.tradefed.targetprep.TargetSetupError |
準備測試目標時發生致命錯誤。
概括
公共構造函數 | |
---|---|
TargetSetupError (String reason) 此構造函數已棄用。請改用 | |
TargetSetupError (String reason, ErrorIdentifier errorId) 使用有意義的錯誤消息構造一個新的 (@link TargetSetupError}。 | |
TargetSetupError (String reason, DeviceDescriptor descriptor) 使用有意義的錯誤消息構造一個新的 (@link TargetSetupError}。 | |
TargetSetupError (String reason, DeviceDescriptor descriptor, ErrorIdentifier errorId) 使用有意義的錯誤消息構造一個新的 (@link TargetSetupError}。 | |
TargetSetupError (String reason, Throwable cause) | |
TargetSetupError (String reason, Throwable cause, ErrorIdentifier errorId) 構造一個新的 (@link TargetSetupError},帶有有意義的錯誤消息和原因。 | |
TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor) 構造一個新的 (@link TargetSetupError},帶有有意義的錯誤消息和原因。 | |
TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor, ErrorIdentifier errorId) 構造一個新的 (@link TargetSetupError},帶有有意義的錯誤消息和原因。 | |
TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor, boolean deviceSide) 構造一個新的 (@link TargetSetupError},帶有有意義的錯誤消息和原因。 | |
TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor, boolean deviceSide, ErrorIdentifier errorId) 構造一個新的 (@link TargetSetupError},帶有有意義的錯誤消息和原因。 |
公共方法 | |
---|---|
String | getDeviceSerial () 返回受 TargetSetupError 影響的設備的序列號。 |
公共構造函數
目標設置錯誤
public TargetSetupError (String reason)
此構造函數已棄用。
請改用TargetSetupError(String, com.android.tradefed.command.remote.DeviceDescriptor)
。
使用有意義的錯誤消息構造一個新的 (@link TargetSetupError}。
參數 | |
---|---|
reason | String : 描述錯誤原因的錯誤消息 |
目標設置錯誤
public TargetSetupError (String reason, ErrorIdentifier errorId)
使用有意義的錯誤消息構造一個新的 (@link TargetSetupError}。
參數 | |
---|---|
reason | String : 描述錯誤原因的錯誤消息 |
errorId | ErrorIdentifier :此錯誤的錯誤標識符。 |
目標設置錯誤
public TargetSetupError (String reason, DeviceDescriptor descriptor)
使用有意義的錯誤消息構造一個新的 (@link TargetSetupError}。
參數 | |
---|---|
reason | String : 描述錯誤原因的錯誤消息 |
descriptor | DeviceDescriptor : 相關設備的描述符 |
目標設置錯誤
public TargetSetupError (String reason, DeviceDescriptor descriptor, ErrorIdentifier errorId)
使用有意義的錯誤消息構造一個新的 (@link TargetSetupError}。
參數 | |
---|---|
reason | String : 描述錯誤原因的錯誤消息 |
descriptor | DeviceDescriptor : 相關設備的描述符 |
errorId | ErrorIdentifier :此錯誤的錯誤標識符。 |
目標設置錯誤
public TargetSetupError (String reason, Throwable cause)
構造一個新的 (@link TargetSetupError},帶有有意義的錯誤消息和原因。
參數 | |
---|---|
reason | String : 詳細的錯誤信息。 |
cause | Throwable :一個ERROR(/Throwable) 捕獲 TargetSetupError 的原始原因 |
目標設置錯誤
public TargetSetupError (String reason, Throwable cause, ErrorIdentifier errorId)
構造一個新的 (@link TargetSetupError},帶有有意義的錯誤消息和原因。
參數 | |
---|---|
reason | String : 詳細的錯誤信息。 |
cause | Throwable :一個ERROR(/Throwable) 捕獲 TargetSetupError 的原始原因 |
errorId | ErrorIdentifier :此錯誤的錯誤標識符。 |
目標設置錯誤
public TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor)
構造一個新的 (@link TargetSetupError},帶有有意義的錯誤消息和原因。
參數 | |
---|---|
reason | String : 詳細的錯誤信息。 |
cause | Throwable :一個ERROR(/Throwable) 捕獲 TargetSetupError 的原始原因 |
descriptor | DeviceDescriptor :相關設備的描述符,可以為空。 |
目標設置錯誤
public TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor, ErrorIdentifier errorId)
構造一個新的 (@link TargetSetupError},帶有有意義的錯誤消息和原因。
參數 | |
---|---|
reason | String : 詳細的錯誤信息。 |
cause | Throwable :一個ERROR(/Throwable) 捕獲 TargetSetupError 的原始原因 |
descriptor | DeviceDescriptor :相關設備的描述符,可以為空。 |
errorId | ErrorIdentifier :此錯誤的錯誤標識符。 |
目標設置錯誤
public TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor, boolean deviceSide)
構造一個新的 (@link TargetSetupError},帶有有意義的錯誤消息和原因。
參數 | |
---|---|
reason | String : 詳細的錯誤信息。 |
cause | Throwable :一個ERROR(/Throwable) 捕獲 TargetSetupError 的原始原因 |
descriptor | DeviceDescriptor :相關設備的描述符,可以為空。 |
deviceSide | boolean : 是否由於設備端錯誤而產生異常。 |
目標設置錯誤
public TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor, boolean deviceSide, ErrorIdentifier errorId)
構造一個新的 (@link TargetSetupError},帶有有意義的錯誤消息和原因。
參數 | |
---|---|
reason | String : 詳細的錯誤信息。 |
cause | Throwable :一個ERROR(/Throwable) 捕獲 TargetSetupError 的原始原因 |
descriptor | DeviceDescriptor :相關設備的描述符,可以為空。 |
deviceSide | boolean : 是否由於設備端錯誤而產生異常。 |
errorId | ErrorIdentifier :此錯誤的錯誤標識符。 |
公共方法
獲取設備序列號
public String getDeviceSerial ()
返回受 TargetSetupError 影響的設備的序列號。可以為空。
退貨 | |
---|---|
String |