FileDocCategorySizeDatePackage
AssertionError.javaAPI DocAndroid 1.5 API4199Wed May 06 22:41:04 BST 2009java.lang

AssertionError

public class AssertionError extends Error
Thrown when an assertion has failed.
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
Constructors Summary
public AssertionError()
Constructs a new {@code AssertionError} with no message.

since
Android 1.0


                     
      
        super();
    
public AssertionError(Object detailMessage)
Constructs a new {@code AssertionError} with a message based on calling {@link String#valueOf(Object)} with the specified object. If the object is an instance of {@link Throwable}, then it also becomes the cause of this error.

param
detailMessage the object to be converted into the detail message and optionally the cause.
since
Android 1.0

        super(String.valueOf(detailMessage),
                (detailMessage instanceof Throwable ? (Throwable) detailMessage
                        : null));
    
public AssertionError(boolean detailMessage)
Constructs a new {@code AssertionError} with a message based on calling {@link String#valueOf(boolean)} with the specified boolean value.

param
detailMessage the value to be converted into the message.
since
Android 1.0

        this(String.valueOf(detailMessage));
    
public AssertionError(char detailMessage)
Constructs a new {@code AssertionError} with a message based on calling {@link String#valueOf(char)} with the specified character value.

param
detailMessage the value to be converted into the message.
since
Android 1.0

        this(String.valueOf(detailMessage));
    
public AssertionError(int detailMessage)
Constructs a new {@code AssertionError} with a message based on calling {@link String#valueOf(int)} with the specified integer value.

param
detailMessage the value to be converted into the message.
since
Android 1.0

        this(Integer.toString(detailMessage));
    
public AssertionError(long detailMessage)
Constructs a new {@code AssertionError} with a message based on calling {@link String#valueOf(long)} with the specified long value.

param
detailMessage the value to be converted into the message.
since
Android 1.0

        this(Long.toString(detailMessage));
    
public AssertionError(float detailMessage)
Constructs a new {@code AssertionError} with a message based on calling {@link String#valueOf(float)} with the specified float value.

param
detailMessage the value to be converted into the message.
since
Android 1.0

        this(Float.toString(detailMessage));
    
public AssertionError(double detailMessage)
Constructs a new {@code AssertionError} with a message based on calling {@link String#valueOf(double)} with the specified double value.

param
detailMessage the value to be converted into the message.
since
Android 1.0

        this(Double.toString(detailMessage));
    
Methods Summary