ErrorInfo


public final class ErrorInfo implements Parcelable


Denotes an android test error. Has details of the error including stack trace, type, and message.

Summary

Constants

static final Parcelable.Creator<ErrorInfo>

Public fields

final @Nullable String

The message associated with the error.

final @Nullable String

The type of error.

final @NonNull String

The stack trace associated with the error.

Public constructors

Creates a ErrorInfo from android Parcel.

ErrorInfo(
    @Nullable String errorMessage,
    @Nullable String errorType,
    @NonNull String stackTrace
)

Constructor to create a ErrorInfo.

Public methods

static ErrorInfo
int
void
writeToParcel(Parcel parcel, int i)

Inherited Constants

From android.os.Parcelable
static final int
static final int

Constants

CREATOR

public static final Parcelable.Creator<ErrorInfoCREATOR

Public fields

errorMessage

public final @Nullable String errorMessage

The message associated with the error.

errorType

public final @Nullable String errorType

The type of error. E.g NullPointerException.

stackTrace

public final @NonNull String stackTrace

The stack trace associated with the error.

Public constructors

ErrorInfo

public ErrorInfo(@NonNull Parcel source)

Creates a ErrorInfo from android Parcel.

Parameters
@NonNull Parcel source

the android Parcel.

ErrorInfo

public ErrorInfo(
    @Nullable String errorMessage,
    @Nullable String errorType,
    @NonNull String stackTrace
)

Constructor to create a ErrorInfo.

Public methods

createFromFailure

public static ErrorInfo createFromFailure(Failure failure)

describeContents

public int describeContents()

writeToParcel

public void writeToParcel(Parcel parcel, int i)