Android Guides | Samples

Java.Lang.AssertionError Class

Thrown when an assertion has failed.

See Also: AssertionError

Syntax

[Android.Runtime.Register("java/lang/AssertionError", DoNotGenerateAcw=true)]
public class AssertionError : Error

Remarks

Thrown when an assertion has failed.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Java.Lang.AssertionError are listed below.

See Also: Error

Public Constructors

Constructs a new AssertionError with no message.
Constructs a new AssertionError with a message based on calling String.ValueOf(Object) with the specified object.
Constructs a new AssertionError with a message based on calling String.ValueOf(Boolean) with the specified boolean value.
Constructs a new AssertionError with a message based on calling String.ValueOf(Char) with the specified character value.
Constructs a new AssertionError with a message based on calling String.ValueOf(Double) with the specified double value.
Constructs a new AssertionError with a message based on calling String.ValueOf(Int32) with the specified integer value.
Constructs a new AssertionError with a message based on calling String.ValueOf(Int64) with the specified long value.
Constructs a new AssertionError with a message based on calling String.ValueOf(Single) with the specified float value.
Constructs a new AssertionError with the given detail message and cause.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.