TargetSetupError
public class TargetSetupError
extends Object
java.lang.Object | |
↳ | com.android.tradefed.targetprep.TargetSetupError |
准备测试目标时发生致命错误。
概要
公共建设者 | |
---|---|
TargetSetupError (String reason) 不推荐使用此构造方法。请改用 | |
TargetSetupError (String reason, DeviceDescriptor descriptor) 使用有意义的错误消息构造一个新的(@link TargetSetupError}。 | |
TargetSetupError (String reason, Throwable cause) 不推荐使用此构造方法。请改用 | |
TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor) 构造一个新的(@link TargetSetupError},其中包含有意义的错误消息和原因。 |
公开方法 | |
---|---|
DeviceDescriptor | getDeviceDescriptor () 返回与异常关联的设备的描述符。 |
公共建设者
TargetSetupError
public TargetSetupError (String reason)
不推荐使用此构造方法。
请改用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, Throwable cause)
不推荐使用此构造方法。
请改用TargetSetupError(String, Throwable, com.android.tradefed.command.remote.DeviceDescriptor)
。
构造一个新的(@link TargetSetupError},其中包含有意义的错误消息和原因。
参量 | |
---|---|
reason | String :详细的错误消息。 |
cause | Throwable :一个Throwable 捕获TargetSetupError的原始原因 |
TargetSetupError
public TargetSetupError (String reason, Throwable cause, DeviceDescriptor descriptor)
构造一个新的(@link TargetSetupError},其中包含有意义的错误消息和原因。
参量 | |
---|---|
reason | String :详细的错误消息。 |
cause | Throwable :一个Throwable 捕获TargetSetupError的原始原因 |
descriptor | DeviceDescriptor :有关设备的描述符 |
公开方法
getDeviceDescriptor
public DeviceDescriptor getDeviceDescriptor ()
返回与异常关联的设备的描述符。
退货 | |
---|---|
DeviceDescriptor |