目标设置错误
public class TargetSetupError
extends HarnessException
java.lang.Object | ||
↳ | com.android.tradefed.error.HarnessException | |
↳ | com.android.tradefed.targetprep.TargetSetupError |
准备测试目标时发生致命错误。
概括
公共构造函数 | |
---|---|
TargetSetupError (String reason) 此构造函数已弃用。请改用 | |
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 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)
构造一个新的 (@link TargetSetupError},带有有意义的错误消息和原因。
参数 | |
---|---|
reason | String : 详细的错误信息。 |
cause | Throwable :一个ERROR(/Throwable) 捕获 TargetSetupError 的原始原因 |
目标设置错误
public TargetSetupError (String reason, Throwable cause, ErrorIdentifier errorId)
构造一个新的 (@link TargetSetupError},带有有意义的错误消息和原因。
参数 | |
---|---|
reason | String : 详细的错误信息。 |
cause | Throwable :一个ERROR(/Throwable) 捕获 TargetSetupError 的原始原因 |
errorId | ErrorIdentifier :此错误的错误标识符。 |
目标设置错误
public TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor)
构造一个新的 (@link TargetSetupError},带有有意义的错误消息和原因。
参数 | |
---|---|
reason | String : 详细的错误信息。 |
cause | Throwable :一个ERROR(/Throwable) 捕获 TargetSetupError 的原始原因 |
descriptor | DeviceDescriptor :相关设备的描述符,可以为空。 |
目标设置错误
public TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor, ErrorIdentifier errorId)
构造一个新的 (@link TargetSetupError},带有有意义的错误消息和原因。
参数 | |
---|---|
reason | String : 详细的错误信息。 |
cause | Throwable :一个ERROR(/Throwable) 捕获 TargetSetupError 的原始原因 |
descriptor | DeviceDescriptor :相关设备的描述符,可以为空。 |
errorId | ErrorIdentifier :此错误的错误标识符。 |
目标设置错误
public TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor, boolean deviceSide)
构造一个新的 (@link TargetSetupError},带有有意义的错误消息和原因。
参数 | |
---|---|
reason | String : 详细的错误信息。 |
cause | Throwable :一个ERROR(/Throwable) 捕获 TargetSetupError 的原始原因 |
descriptor | DeviceDescriptor :相关设备的描述符,可以为空。 |
deviceSide | boolean : 是否由于设备端错误而产生异常。 |
目标设置错误
public TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor, boolean deviceSide, ErrorIdentifier errorId)
构造一个新的 (@link TargetSetupError},带有有意义的错误消息和原因。
参数 | |
---|---|
reason | String : 详细的错误信息。 |
cause | Throwable :一个ERROR(/Throwable) 捕获 TargetSetupError 的原始原因 |
descriptor | DeviceDescriptor :相关设备的描述符,可以为空。 |
deviceSide | boolean : 是否由于设备端错误而产生异常。 |
errorId | ErrorIdentifier :此错误的错误标识符。 |
公共方法
获取设备序列号
public String getDeviceSerial ()
返回受 TargetSetupError 影响的设备的序列号。可以为空。
退货 | |
---|---|
String |