BuildRetrievalError

public class BuildRetrievalError
extends Exception

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


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.

Public constructors

BuildRetrievalError

BuildRetrievalError (String reason)

Constructs a new BuildRetrievalError with a meaningful error message.

Parameters
reason String: a error message describing the cause of the error

BuildRetrievalError

BuildRetrievalError (String reason, 
                Throwable cause)

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

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

BuildRetrievalError

BuildRetrievalError (String reason, 
                Throwable cause, 
                IBuildInfo build)

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

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

Public methods

getBuildInfo

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
IBuildInfo the IBuildInfo

setBuildInfo

void setBuildInfo (IBuildInfo build)

Set the build info.

Parameters
build IBuildInfo: the IBuildInfo