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)
      
      This constructor is deprecated.
    請改用  | |
| 
      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:捕捉 TargetSetupError 的原始原因的Throwable | 
| 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。 | 
TargetSetupError
public TargetSetupError (String reason, 
                Throwable cause, 
                DeviceDescriptor descriptor, 
                ErrorIdentifier errorId)建構新的 (@link TargetSetupError},並附上有意義的錯誤訊息和原因。
| 參數 | |
|---|---|
| reason | String:詳細的錯誤訊息。 | 
| cause | Throwable:捕捉 TargetSetupError 的原始原因的Throwable | 
| descriptor | DeviceDescriptor:相關裝置的描述符,可為空值。 | 
| errorId | ErrorIdentifier:此錯誤的錯誤 ID。 | 
TargetSetupError
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 | |
