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 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)
此构造函数已废弃。
请改用 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:此错误的错误标识符。 |
TargetSetupError
public TargetSetupError (String reason,
ErrorIdentifier errorId)使用有意义的错误消息构造新的 (@link TargetSetupError}。
| 参数 | |
|---|---|
reason |
String:描述错误原因的错误消息 |
errorId |
ErrorIdentifier:此错误的错误标识符。 |
TargetSetupError
public TargetSetupError (String reason,
Throwable cause)
此构造函数已废弃。
请改用 TargetSetupError(String,Throwable,DeviceDescriptor,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:相关设备的描述符,可以为 null。 |
TargetSetupError
public TargetSetupError (String reason,
Throwable cause,
DeviceDescriptor descriptor,
boolean deviceSide)使用有意义的错误消息和原因构造新的 (@link TargetSetupError}。
| 参数 | |
|---|---|
reason |
String:详细的错误消息。 |
cause |
Throwable:捕获 TargetSetupError 原始原因的 Throwable |
descriptor |
DeviceDescriptor:相关设备的描述符,可以为 null。 |
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:相关设备的描述符,可以为 null。 |
deviceSide |
boolean:是否因设备端错误而生成异常。 |
errorId |
ErrorIdentifier:此错误的错误标识符。 |
TargetSetupError
public TargetSetupError (String reason,
Throwable cause,
DeviceDescriptor descriptor,
ErrorIdentifier errorId)使用有意义的错误消息和原因构造新的 (@link TargetSetupError}。
| 参数 | |
|---|---|
reason |
String:详细的错误消息。 |
cause |
Throwable:捕获 TargetSetupError 原始原因的 Throwable |
descriptor |
DeviceDescriptor:相关设备的描述符,可以为 null。 |
errorId |
ErrorIdentifier:此错误的错误标识符。 |
TargetSetupError
public TargetSetupError (String reason,
Throwable cause,
ErrorIdentifier errorId)使用有意义的错误消息和原因构造新的 (@link TargetSetupError}。
| 参数 | |
|---|---|
reason |
String:详细的错误消息。 |
cause |
Throwable:捕获 TargetSetupError 原始原因的 Throwable |
errorId |
ErrorIdentifier:此错误的错误标识符。 |
公共方法
getDeviceSerial
public String getDeviceSerial ()
返回受 TargetSetupError 影响的设备的序列号。可以为 null。
| 返回 | |
|---|---|
String |
|