BuildError

public class BuildError
extends Object

java.lang.Object
   ↳ com.android.tradefed.targetprep.BuildError


Thrown if the provided build fails to run.

Summary

Public constructors

BuildError(String reason, DeviceDescriptor descriptor)

Constructs a new (@link BuildError} with a detailed error message.

BuildError(String reason)

This constructor is deprecated. use BuildError(String, com.android.tradefed.command.remote.DeviceDescriptor) instead.

Public methods

DeviceDescriptor getDeviceDescriptor()

Return the descriptor of the device associated with exception.

Public constructors

BuildError

public BuildError (String reason, 
                DeviceDescriptor descriptor)

Constructs a new (@link BuildError} with a detailed error message.

Parameters
reason String: an error message giving more details on the build error

descriptor DeviceDescriptor: the descriptor of the device concerned

BuildError

public BuildError (String reason)

This constructor is deprecated.
use BuildError(String, com.android.tradefed.command.remote.DeviceDescriptor) instead.

Constructs a new (@link BuildError} with a detailed error message.

Parameters
reason String: an error message giving more details on the build error

Public methods

getDeviceDescriptor

public DeviceDescriptor getDeviceDescriptor ()

Return the descriptor of the device associated with exception.

Returns
DeviceDescriptor