BuildRetrievalError
public
class
BuildRetrievalError
extends HarnessException
| java.lang.Object | ||
| ↳ | 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, IBuildInfo build)
意味のあるエラー メッセージ、原因、ビルドの詳細を含む新しい |
|
BuildRetrievalError(String reason, Throwable cause, ErrorIdentifier errorId)
意味のあるエラー メッセージと原因を使用して新しい |
|
BuildRetrievalError(String reason, Throwable cause, ErrorIdentifier errorId, IBuildInfo build)
意味のあるエラー メッセージ、原因、ビルドの詳細を含む新しい |
|
パブリック メソッド | |
|---|---|
IBuildInfo
|
getBuildInfo()
取得しようとしたビルドの詳細を返します。 |
void
|
setBuildInfo(IBuildInfo build)
ビルド情報を設定します。 |
パブリック コンストラクタ
BuildRetrievalError
public BuildRetrievalError (String reason)
意味のあるエラー メッセージを付けて新しい BuildRetrievalError を作成します。
| パラメータ | |
|---|---|
reason |
String: エラーの原因を説明するエラー メッセージ |
BuildRetrievalError
public BuildRetrievalError (String reason,
ErrorIdentifier errorId)意味のあるエラー メッセージを付けて新しい BuildRetrievalError を作成します。
| パラメータ | |
|---|---|
reason |
String: エラーの原因を説明するエラー メッセージ |
errorId |
ErrorIdentifier: このエラーのエラー識別子。 |
BuildRetrievalError
public BuildRetrievalError (String reason,
Throwable cause)意味のあるエラー メッセージと原因を使用して新しい BuildRetrievalError を構築します。
| パラメータ | |
|---|---|
reason |
String: 詳細なエラー メッセージ。 |
cause |
Throwable: ProvideBuildError の元の原因をキャプチャした Throwable |
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)意味のあるエラー メッセージと原因を使用して新しい BuildRetrievalError を構築します。
| パラメータ | |
|---|---|
reason |
String: 詳細なエラー メッセージ。 |
cause |
Throwable: ProvideBuildError の元の原因をキャプチャした Throwable |
errorId |
ErrorIdentifier: このエラーのエラー識別子。 |
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 |