目標設置錯誤
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 :捕獲 TargetSetupError 原始原因的Throwable |
目標設置錯誤
public TargetSetupError (String reason, Throwable cause, ErrorIdentifier errorId)
構造一個新的 (@link TargetSetupError},其中包含有意義的錯誤消息和原因。
參數 | |
---|---|
reason | String :詳細的錯誤消息。 |
cause | Throwable :捕獲 TargetSetupError 原始原因的Throwable |
errorId | ErrorIdentifier :此錯誤的錯誤標識符。 |
目標設置錯誤
public TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor)
構造一個新的 (@link TargetSetupError},其中包含有意義的錯誤消息和原因。
參數 | |
---|---|
reason | String :詳細的錯誤消息。 |
cause | Throwable :捕獲 TargetSetupError 原始原因的Throwable |
descriptor | DeviceDescriptor :相關設備的描述符,可以為空。 |
目標設置錯誤
public TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor, ErrorIdentifier errorId)
構造一個新的 (@link TargetSetupError},其中包含有意義的錯誤消息和原因。
參數 | |
---|---|
reason | String :詳細的錯誤消息。 |
cause | Throwable :捕獲 TargetSetupError 原始原因的Throwable |
descriptor | DeviceDescriptor :相關設備的描述符,可以為空。 |
errorId | ErrorIdentifier :此錯誤的錯誤標識符。 |
目標設置錯誤
public TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor, boolean deviceSide)
構造一個新的 (@link TargetSetupError},其中包含有意義的錯誤消息和原因。
參數 | |
---|---|
reason | String :詳細的錯誤消息。 |
cause | Throwable :捕獲 TargetSetupError 原始原因的Throwable |
descriptor | DeviceDescriptor :相關設備的描述符,可以為空。 |
deviceSide | boolean :是否由於設備端錯誤而生成異常。 |
目標設置錯誤
public TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor, boolean deviceSide, ErrorIdentifier errorId)
構造一個新的 (@link TargetSetupError},其中包含有意義的錯誤消息和原因。
參數 | |
---|---|
reason | String :詳細的錯誤消息。 |
cause | Throwable :捕獲 TargetSetupError 原始原因的Throwable |
descriptor | DeviceDescriptor :相關設備的描述符,可以為空。 |
deviceSide | boolean :是否由於設備端錯誤而生成異常。 |
errorId | ErrorIdentifier :此錯誤的錯誤標識符。 |
公共方法
獲取設備序列號
public String getDeviceSerial ()
返回受 TargetSetupError 影響的設備的序列號。可以為空。
退貨 | |
---|---|
String |