BuildError

public class BuildError
extends Exception

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.android.tradefed.targetprep.BuildError
Known Direct Subclasses
DeviceFailedToBootError Thrown if a device fails to boot after being flashed with a build. 


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, DeviceDescriptor) instead.

Public methods

DeviceDescriptor getDeviceDescriptor()

Return the descriptor of the device associated with exception.

Public constructors

BuildError

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

BuildError (String reason)

This constructor is deprecated.
use BuildError(String, 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

DeviceDescriptor getDeviceDescriptor ()

Return the descriptor of the device associated with exception.

Returns
DeviceDescriptor