TargetSetupError

public class TargetSetupError
extends HarnessException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.android.tradefed.error.HarnessException
         ↳ com.android.tradefed.targetprep.TargetSetupError


準備測試目標時發生嚴重錯誤。

摘要

公用建構函式

TargetSetupError(String reason)

這個建構函式已淘汰。 請改用 TargetSetupError(String,DeviceDescriptor)

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,Throwable,DeviceDescriptor,ErrorIdentifier)

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)

這個建構函式已淘汰。
請改用 TargetSetupError(String,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)

這個建構函式已淘汰。
請改用 TargetSetupError(String,Throwable,DeviceDescriptor,ErrorIdentifier)

建構新的 (@link TargetSetupError},並提供有意義的錯誤訊息和原因。

參數
reason String:詳細的錯誤訊息。

cause ThrowableThrowable,擷取 TargetSetupError 的原始原因

TargetSetupError

public TargetSetupError (String reason, 
                Throwable cause, 
                DeviceDescriptor descriptor)

建構新的 (@link TargetSetupError},並提供有意義的錯誤訊息和原因。

參數
reason String:詳細的錯誤訊息。

cause ThrowableThrowable,擷取 TargetSetupError 的原始原因

descriptor DeviceDescriptor:相關裝置的描述元,可為空值。

TargetSetupError

public TargetSetupError (String reason, 
                Throwable cause, 
                DeviceDescriptor descriptor, 
                boolean deviceSide)

建構新的 (@link TargetSetupError},並提供有意義的錯誤訊息和原因。

參數
reason String:詳細的錯誤訊息。

cause ThrowableThrowable,擷取 TargetSetupError 的原始原因

descriptor DeviceDescriptor:相關裝置的描述元,可為空值。

deviceSide boolean:例外狀況是否因裝置端錯誤而產生。

TargetSetupError

public TargetSetupError (String reason, 
                Throwable cause, 
                DeviceDescriptor descriptor, 
                boolean deviceSide, 
                ErrorIdentifier errorId)

建構新的 (@link TargetSetupError},並提供有意義的錯誤訊息和原因。

參數
reason String:詳細的錯誤訊息。

cause ThrowableThrowable,擷取 TargetSetupError 的原始原因

descriptor DeviceDescriptor:相關裝置的描述元,可為空值。

deviceSide boolean:例外狀況是否因裝置端錯誤而產生。

errorId ErrorIdentifier:此錯誤的錯誤 ID。

TargetSetupError

public TargetSetupError (String reason, 
                Throwable cause, 
                DeviceDescriptor descriptor, 
                ErrorIdentifier errorId)

建構新的 (@link TargetSetupError},並提供有意義的錯誤訊息和原因。

參數
reason String:詳細的錯誤訊息。

cause ThrowableThrowable,擷取 TargetSetupError 的原始原因

descriptor DeviceDescriptor:相關裝置的描述元,可為空值。

errorId ErrorIdentifier:此錯誤的錯誤 ID。

TargetSetupError

public TargetSetupError (String reason, 
                Throwable cause, 
                ErrorIdentifier errorId)

建構新的 (@link TargetSetupError},並提供有意義的錯誤訊息和原因。

參數
reason String:詳細的錯誤訊息。

cause ThrowableThrowable,擷取 TargetSetupError 的原始原因

errorId ErrorIdentifier:此錯誤的錯誤 ID。

公用方法

getDeviceSerial

public String getDeviceSerial ()

傳回受 TargetSetupError 影響的裝置序號。可為空值。

傳回
String