TargetSetupError
public
class
TargetSetupError
extends HarnessException
java.lang.Object | ||
↳ | com.android.tradefed.error.HarnessException | |
↳ | com.android.tradefed.targetprep.TargetSetupError |
準備測試目標時發生致命錯誤。
摘要
公用建構函式 | |
---|---|
TargetSetupError(String reason)
This constructor is deprecated.
請改用 |
|
TargetSetupError(String reason, DeviceDescriptor descriptor)
使用有意義的錯誤訊息建構新的 (@link TargetSetupError}。 |
|
TargetSetupError(String reason, DeviceDescriptor descriptor, ErrorIdentifier errorId)
使用有意義的錯誤訊息建構新的 (@link TargetSetupError}。 |
|
TargetSetupError(String reason, ErrorIdentifier errorId)
使用有意義的錯誤訊息建構新的 (@link TargetSetupError}。 |
|
TargetSetupError(String reason, Throwable cause)
|
|
TargetSetupError(String reason, Throwable cause, DeviceDescriptor descriptor)
建構新的 (@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},並附上有意義的錯誤訊息和原因。 |
|
TargetSetupError(String reason, Throwable cause, DeviceDescriptor descriptor, ErrorIdentifier errorId)
建構新的 (@link TargetSetupError},並附上有意義的錯誤訊息和原因。 |
|
TargetSetupError(String reason, Throwable cause, ErrorIdentifier errorId)
建構新的 (@link TargetSetupError},並附上有意義的錯誤訊息和原因。 |
公用方法 | |
---|---|
String
|
getDeviceSerial()
傳回受 TargetSetupError 影響的裝置序號。 |
公用建構函式
TargetSetupError
public TargetSetupError (String reason)
This constructor is deprecated.
請改用 TargetSetupError(String, com.android.tradefed.command.remote.DeviceDescriptor)
。
建構新的 (@link TargetSetupError},並提供有意義的錯誤訊息。
參數 | |
---|---|
reason |
String :說明錯誤原因的錯誤訊息 |
TargetSetupError
public TargetSetupError (String reason, DeviceDescriptor descriptor)
建構內含有意義的錯誤訊息的新 (@link TargetSetupError})。
參數 | |
---|---|
reason |
String :說明錯誤原因的錯誤訊息 |
descriptor |
DeviceDescriptor :相關裝置的描述項 |
TargetSetupError
public TargetSetupError (String reason, DeviceDescriptor descriptor, ErrorIdentifier errorId)
建構內含有意義的錯誤訊息的新 (@link TargetSetupError})。
參數 | |
---|---|
reason |
String :說明錯誤原因的錯誤訊息 |
descriptor |
DeviceDescriptor :相關裝置的描述元 |
errorId |
ErrorIdentifier :此錯誤的錯誤 ID。 |
TargetSetupError
public TargetSetupError (String reason, ErrorIdentifier errorId)
建構內含有意義的錯誤訊息的新 (@link TargetSetupError})。
參數 | |
---|---|
reason |
String :說明錯誤原因的錯誤訊息 |
errorId |
ErrorIdentifier :此錯誤的錯誤 ID。 |
TargetSetupError
public TargetSetupError (String reason, Throwable cause)
This constructor is deprecated.
請改用 TargetSetupError(String, Throwable, com.android.tradefed.command.remote.DeviceDescriptor, com.android.tradefed.result.error.ErrorIdentifier)
。
建構新的 (@link TargetSetupError},並附上有意義的錯誤訊息和原因。
參數 | |
---|---|
reason |
String :詳細錯誤訊息。 |
cause |
Throwable :捕捉 TargetSetupError 的原始原因的 Throwable |
TargetSetupError
public TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor)
建構新的 (@link TargetSetupError},並附上有意義的錯誤訊息和原因。
參數 | |
---|---|
reason |
String :詳細錯誤訊息。 |
cause |
Throwable :Throwable 會擷取 TargetSetupError 的原始原因 |
descriptor |
DeviceDescriptor :相關裝置的描述項,可為空值。 |
TargetSetupError
public TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor, boolean deviceSide)
建構新的 (@link TargetSetupError},並附上有意義的錯誤訊息和原因。
參數 | |
---|---|
reason |
String :詳細錯誤訊息。 |
cause |
Throwable :捕捉 TargetSetupError 的原始原因的 Throwable |
descriptor |
DeviceDescriptor :相關裝置的描述項,可為空值。 |
deviceSide |
boolean :例外狀況是否因裝置端錯誤而產生。 |
TargetSetupError
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 :該錯誤的錯誤 ID。 |
目標設定錯誤
public TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor, ErrorIdentifier errorId)
建構新的 (@link TargetSetupError},並附上有意義的錯誤訊息和原因。
參數 | |
---|---|
reason |
String :詳細錯誤訊息。 |
cause |
Throwable :捕捉 TargetSetupError 的原始原因的 Throwable |
descriptor |
DeviceDescriptor :相關裝置的描述元,可以是空值。 |
errorId |
ErrorIdentifier :此錯誤的錯誤 ID。 |
目標設定錯誤
public TargetSetupError (String reason, Throwable cause, ErrorIdentifier errorId)
建構新的 (@link TargetSetupError},並附上有意義的錯誤訊息和原因。
參數 | |
---|---|
reason |
String :詳細錯誤訊息。 |
cause |
Throwable :捕捉 TargetSetupError 的原始原因的 Throwable |
errorId |
ErrorIdentifier :該錯誤的錯誤 ID。 |
公用方法
getDeviceSerial
public String getDeviceSerial ()
傳回受 TargetSetupError 影響的裝置序號。可為空值。
傳回 | |
---|---|
String |