public class

BuildRetrievalError

extends Exception
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.android.tradefed.build.BuildRetrievalError

Class Overview

A fatal error occurred while retrieving the build for testing.

Summary

Public Constructors
BuildRetrievalError(String reason)
Constructs a new BuildRetrievalError with a meaningful error message.
BuildRetrievalError(String reason, Throwable cause)
Constructs a new BuildRetrievalError with a meaningful error message, and a cause.
BuildRetrievalError(String reason, Throwable cause, IBuildInfo build)
Constructs a new BuildRetrievalError with a meaningful error message, a cause, and build details.
Public Methods
IBuildInfo getBuildInfo()
Return details about the build that was attempted to be retrieved.
void setBuildInfo(IBuildInfo build)
Set the build info.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public BuildRetrievalError (String reason)

Constructs a new BuildRetrievalError with a meaningful error message.

Parameters
reason a error message describing the cause of the error

public BuildRetrievalError (String reason, Throwable cause)

Constructs a new BuildRetrievalError with a meaningful error message, and a cause.

Parameters
reason a detailed error message.
cause a Throwable capturing the original cause of the ProvideBuildError

public BuildRetrievalError (String reason, Throwable cause, IBuildInfo build)

Constructs a new BuildRetrievalError with a meaningful error message, a cause, and build details.

Parameters
reason a detailed error message.
cause a Throwable capturing the original cause of the ProvideBuildError
build details about the build that was attempted to be retrieved

Public Methods

public IBuildInfo getBuildInfo ()

Return details about the build that was attempted to be retrieved.

The returned IBuildInfo will never be null but it may be missing data such as build_id, etc

Returns

public void setBuildInfo (IBuildInfo build)

Set the build info.

Parameters
build the IBuildInfo