{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

PerformException

class PerformException : RuntimeException, EspressoException

kotlin.Any
   ↳ kotlin.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ androidx.test.espresso.PerformException

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

PerformException.Builder

Builder for PerformException.

Public constructors

Public properties

String!
String!

Inherited functions

From class java.lang.Throwable

Public constructors

PerformException

PerformException()

Public properties

actionDescription

val actionDescriptionString!

viewDescription

val viewDescriptionString!