Stay organized with collections Save and categorize content based on your preferences.

PerformException

public final class PerformException extends RuntimeException implements EspressoException


Indicates that an exception occurred while performing a ViewAction on the UI thread.

A description of the ViewAction, the view being performed on and the cause are included in the error. Note: FailureHandlers can mutate the exception later to make it more user friendly.

This is generally not recoverable so it is thrown on the instrumentation thread.

Summary

Nested types

public class PerformException.Builder

Builder for PerformException.

Public constructors

Inherited fields

From java.lang.Throwable
Throwable
StackTraceElement[]

Inherited methods

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] stackTrace)
String

Public constructors

PerformException

public PerformException()

Public methods

getActionDescription

public String getActionDescription()

getViewDescription

public String getViewDescription()