Skip to content

Most visited

Recently visited

navigation
Added in API level 1
Deprecated since API level 16

AssertionFailedError

public class AssertionFailedError
extends Error

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Error
       ↳ android.test.AssertionFailedError
Known Direct Subclasses


This class was deprecated in API level 16.
use junit.framework.AssertionFailedError

Thrown when an assertion failed.

Summary

Public constructors

AssertionFailedError()

It is more typical to call AssertionFailedError(String).

AssertionFailedError(String errorMessage)

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

AssertionFailedError

Added in API level 1
AssertionFailedError ()

It is more typical to call AssertionFailedError(String).

AssertionFailedError

Added in API level 1
AssertionFailedError (String errorMessage)

Parameters
errorMessage String
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.