目標設定錯誤

public class TargetSetupError
extends HarnessException

java.lang.Object
com.android.tradefed.error.HarnessException
com.android.tradefed.targetprep.TargetSetupError


準備測試目標時發生致命錯誤。

概括

公共構造函數

TargetSetupError (String reason)

該構造函數已被棄用。使用TargetSetupError(String, com.android.tradefed.command.remote.DeviceDescriptor)取代。

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, Throwable, com.android.tradefed.command.remote.DeviceDescriptor, com.android.tradefed.result.error.ErrorIdentifier)取代。

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)

該構造函數已被棄用。
使用TargetSetupError(String, Throwable, com.android.tradefed.command.remote.DeviceDescriptor, com.android.tradefed.result.error.ErrorIdentifier)取代。

建構一個新的 (@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