目标设置错误
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 :捕获 TargetSetupError 原始原因的Throwable |
目标设置错误
public TargetSetupError (String reason, Throwable cause, ErrorIdentifier errorId)
构造一个新的 (@link TargetSetupError},其中包含有意义的错误消息和原因。
参数 | |
---|---|
reason | String :详细的错误消息。 |
cause | Throwable :捕获 TargetSetupError 原始原因的Throwable |
errorId | ErrorIdentifier :此错误的错误标识符。 |
目标设置错误
public TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor)
构造一个新的 (@link TargetSetupError},其中包含有意义的错误消息和原因。
参数 | |
---|---|
reason | String :详细的错误消息。 |
cause | Throwable :捕获 TargetSetupError 原始原因的Throwable |
descriptor | DeviceDescriptor :相关设备的描述符,可以为空。 |
目标设置错误
public TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor, ErrorIdentifier errorId)
构造一个新的 (@link TargetSetupError},其中包含有意义的错误消息和原因。
参数 | |
---|---|
reason | String :详细的错误消息。 |
cause | Throwable :捕获 TargetSetupError 原始原因的Throwable |
descriptor | DeviceDescriptor :相关设备的描述符,可以为空。 |
errorId | ErrorIdentifier :此错误的错误标识符。 |
目标设置错误
public TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor, boolean deviceSide)
构造一个新的 (@link TargetSetupError},其中包含有意义的错误消息和原因。
参数 | |
---|---|
reason | String :详细的错误消息。 |
cause | Throwable :捕获 TargetSetupError 原始原因的Throwable |
descriptor | DeviceDescriptor :相关设备的描述符,可以为空。 |
deviceSide | boolean :是否由于设备端错误而生成异常。 |
目标设置错误
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 :此错误的错误标识符。 |
公共方法
获取设备序列号
public String getDeviceSerial ()
返回受 TargetSetupError 影响的设备的序列号。可以为空。
退货 | |
---|---|
String |