加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090303144732/http://developer.android.com:80/reference/java/lang/AssertionError.html
public class

AssertionError

extends Error
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Error
       ↳ java.lang.AssertionError

Class Overview

Indicates that an assertion has failed.

Summary

Public Constructors
AssertionError()

Constructs an instance without a message.

AssertionError(Object detailMessage)

Constructs an instance with a message that is the valueOf(Object) of the object passed.

AssertionError(boolean detailMessage)

Constructs an instance with a message that is the valueOf(boolean) of the boolean passed.

AssertionError(char detailMessage)

Constructs an instance with a message that is the valueOf(char) of the char passed.

AssertionError(int detailMessage)

Constructs an instance with a message that is the valueOf(int) of the int passed.

AssertionError(long detailMessage)

Constructs an instance with a message that is the valueOf(long) of the long passed.

AssertionError(float detailMessage)

Constructs an instance with a message that is the valueOf(float) of the float passed.

AssertionError(double detailMessage)

Constructs an instance with a message that is the valueOf(double) of the double passed.

[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public AssertionError ()

Constructs an instance without a message.

public AssertionError (Object detailMessage)

Constructs an instance with a message that is the valueOf(Object) of the object passed. If the object passed is an instanceof Throwable, then it also becomes the cause of this error.

Parameters
detailMessage The value to be converted into the message and optionally the cause.

public AssertionError (boolean detailMessage)

Constructs an instance with a message that is the valueOf(boolean) of the boolean passed.

Parameters
detailMessage The value to be converted into the message.

public AssertionError (char detailMessage)

Constructs an instance with a message that is the valueOf(char) of the char passed.

Parameters
detailMessage The value to be converted into the message.

public AssertionError (int detailMessage)

Constructs an instance with a message that is the valueOf(int) of the int passed.

Parameters
detailMessage The value to be converted into the message.

public AssertionError (long detailMessage)

Constructs an instance with a message that is the valueOf(long) of the long passed.

Parameters
detailMessage The value to be converted into the message.

public AssertionError (float detailMessage)

Constructs an instance with a message that is the valueOf(float) of the float passed.

Parameters
detailMessage The value to be converted into the message.

public AssertionError (double detailMessage)

Constructs an instance with a message that is the valueOf(double) of the double passed.

Parameters
detailMessage The value to be converted into the message.