BuildRetrievalError
public class BuildRetrievalError
extends HarnessException
java.lang.Object | ||||
↳ | java.lang.Throwable | |||
↳ | java.lang.Exception | |||
↳ | com.android.tradefed.error.HarnessException | |||
↳ | com.android.tradefed.build.BuildRetrievalError |
テスト用のビルドの取得中に致命的なエラーが発生しました。
概要
パブリックコンストラクター | |
---|---|
BuildRetrievalError (String reason) 意味のあるエラーメッセージを含む新しい | |
BuildRetrievalError (String reason, ErrorIdentifier errorId) 意味のあるエラーメッセージを含む新しい | |
BuildRetrievalError (String reason, Throwable cause) 意味のあるエラーメッセージと原因を含む新しい | |
BuildRetrievalError (String reason, Throwable cause, ErrorIdentifier errorId) 意味のあるエラーメッセージと原因を含む新しい | |
BuildRetrievalError (String reason, Throwable cause, IBuildInfo build) 意味のあるエラーメッセージ、原因、およびビルドの詳細を含む新しい | |
BuildRetrievalError (String reason, Throwable cause, ErrorIdentifier errorId, IBuildInfo build) 意味のあるエラーメッセージ、原因、およびビルドの詳細を含む新しい |
パブリックメソッド | |
---|---|
IBuildInfo | getBuildInfo () 取得しようとしたビルドに関する詳細を返します。 |
void | setBuildInfo (IBuildInfo build) ビルド情報を設定します。 |
パブリックコンストラクター
BuildRetrievalError
public BuildRetrievalError (String reason)
意味のあるエラーメッセージを含む新しいBuildRetrievalError
をBuildRetrievalError
します。
パラメーター | |
---|---|
reason | String :エラーの原因を説明するエラーメッセージ |
BuildRetrievalError
public BuildRetrievalError (String reason, ErrorIdentifier errorId)
意味のあるエラーメッセージを含む新しいBuildRetrievalError
をBuildRetrievalError
します。
パラメーター | |
---|---|
reason | String :エラーの原因を説明するエラーメッセージ |
errorId | ErrorIdentifier :このエラーのエラー識別子。 |
BuildRetrievalError
public BuildRetrievalError (String reason, Throwable cause)
意味のあるエラーメッセージと原因を含む新しいBuildRetrievalError
をBuildRetrievalError
します。
パラメーター | |
---|---|
reason | String :詳細なエラーメッセージ。 |
cause | Throwable :ProvideBuildErrorの元の原因をキャプチャするThrowable |
BuildRetrievalError
public BuildRetrievalError (String reason, Throwable cause, ErrorIdentifier errorId)
意味のあるエラーメッセージと原因を含む新しいBuildRetrievalError
をBuildRetrievalError
します。
パラメーター | |
---|---|
reason | String :詳細なエラーメッセージ。 |
cause | Throwable :ProvideBuildErrorの元の原因をキャプチャするThrowable |
errorId | ErrorIdentifier :このエラーのエラー識別子。 |
BuildRetrievalError
public BuildRetrievalError (String reason, Throwable cause, IBuildInfo build)
意味のあるエラーメッセージ、原因、およびビルドの詳細を含む新しいBuildRetrievalError
を作成します。
パラメーター | |
---|---|
reason | String :詳細なエラーメッセージ。 |
cause | Throwable :ProvideBuildErrorの元の原因をキャプチャするThrowable |
build | IBuildInfo :取得しようとしたビルドの詳細 |
BuildRetrievalError
public BuildRetrievalError (String reason, Throwable cause, ErrorIdentifier errorId, IBuildInfo build)
意味のあるエラーメッセージ、原因、およびビルドの詳細を含む新しいBuildRetrievalError
を作成します。
パラメーター | |
---|---|
reason | String :詳細なエラーメッセージ。 |
cause | Throwable :ProvideBuildErrorの元の原因をキャプチャするThrowable |
errorId | ErrorIdentifier :このエラーのエラー識別子。 |
build | IBuildInfo :取得しようとしたビルドの詳細 |
パブリックメソッド
getBuildInfo
public IBuildInfo getBuildInfo ()
取得しようとしたビルドに関する詳細を返します。
返されるIBuildInfo
がnullになることはありませんが、build_idなどのデータが欠落している可能性があります。戻り値 | |
---|---|
IBuildInfo | IBuildInfo |
setBuildInfo
public void setBuildInfo (IBuildInfo build)
ビルド情報を設定します。
パラメーター | |
---|---|
build | IBuildInfo : IBuildInfo |