MultiFailureDescription

public final class MultiFailureDescription
extends FailureDescription

java.lang.Object
   ↳ com.android.tradefed.result.FailureDescription
     ↳ com.android.tradefed.result.MultiFailureDescription


Collect multiple FailureDescription in one holder. This can be used to carry all the failures description when several attempts on the same test case or run are made, each resulting in a failure.

Summary

Public constructors

MultiFailureDescription(FailureDescription... failures)
MultiFailureDescription( failures)

Public methods

MultiFailureDescription addFailure(FailureDescription failure)

Add another failure to an existing MultiFailureDescription.

boolean equals(Object obj)
ErrorIdentifier getErrorIdentifier()

Returns the ErrorIdentifier representing the failure.

String getErrorMessage()

Returns the error message associated with the failure.

TestRecordProto.FailureStatus getFailureStatus()

Returns the FailureStatus associated with the failure.

getFailures()

Returns the list of FailureDescription tracked by the MultiFailureDescription.

String getOrigin()

Returns the origin of the error.

boolean isRetriable()

Returns whether or not the error is retriable or not.

String toString()

Public constructors

MultiFailureDescription

public MultiFailureDescription (FailureDescription... failures)

Parameters
failures FailureDescription

MultiFailureDescription

public MultiFailureDescription ( failures)

Parameters
failures

Public methods

addFailure

public MultiFailureDescription addFailure (FailureDescription failure)

Add another failure to an existing MultiFailureDescription.

Parameters
failure FailureDescription: The additional failure

Returns
MultiFailureDescription The current MultiFailureDescription.

equals

public boolean equals (Object obj)

Parameters
obj Object

Returns
boolean

getErrorIdentifier

public ErrorIdentifier getErrorIdentifier ()

Returns the ErrorIdentifier representing the failure. Can be null.

Returns
ErrorIdentifier

getErrorMessage

public String getErrorMessage ()

Returns the error message associated with the failure.

Returns
String

getFailureStatus

public TestRecordProto.FailureStatus getFailureStatus ()

Returns the FailureStatus associated with the failure. Can be null.

Returns
TestRecordProto.FailureStatus

getFailures

public  getFailures ()

Returns the list of FailureDescription tracked by the MultiFailureDescription.

Returns

getOrigin

public String getOrigin ()

Returns the origin of the error. Can be null.

Returns
String

isRetriable

public boolean isRetriable ()

Returns whether or not the error is retriable or not.

Returns
boolean

toString

public String toString ()

Returns
String