DeviceFailedToBootError

public class DeviceFailedToBootError
extends BuildError

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


如果裝置在刷入版本後無法啟動,就會擲回這個例外狀況。

摘要

公用建構函式

DeviceFailedToBootError(String reason, DeviceDescriptor descriptor)

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

DeviceFailedToBootError(String reason, DeviceDescriptor descriptor, ErrorIdentifier errorId)

Constructs a new (@link DeviceFailedToBootError} with a detailed error message.

DeviceFailedToBootError(String reason, DeviceDescriptor descriptor, Throwable cause, ErrorIdentifier errorId)

Constructs a new (@link DeviceFailedToBootError} with a detailed error message.

公用建構函式

DeviceFailedToBootError

public DeviceFailedToBootError (String reason, 
                DeviceDescriptor descriptor)

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

建構新的 (@link DeviceFailedToBootError},並提供詳細的錯誤訊息。

參數
reason String:提供開機失敗詳細資訊的錯誤訊息

descriptor DeviceDescriptor:例外狀況所涉裝置的描述元

DeviceFailedToBootError

public DeviceFailedToBootError (String reason, 
                DeviceDescriptor descriptor, 
                ErrorIdentifier errorId)

建構新的 (@link DeviceFailedToBootError},並提供詳細的錯誤訊息。

參數
reason String:提供開機失敗詳細資訊的錯誤訊息

descriptor DeviceDescriptor:例外狀況所涉裝置的描述元

errorId ErrorIdentifier:此錯誤的錯誤 ID。

DeviceFailedToBootError

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

建構新的 (@link DeviceFailedToBootError},並提供詳細的錯誤訊息。

參數
reason String:提供開機失敗詳細資訊的錯誤訊息

descriptor DeviceDescriptor:例外狀況所涉裝置的描述元

cause Throwable:例外狀況的原始原因

errorId ErrorIdentifier:此錯誤的錯誤 ID。