java.lang
Class AssertionError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
          extended byjava.lang.AssertionError
All Implemented Interfaces:
Serializable

public class AssertionError
extends Error

Indicates that an assertion has failed.

Since:
1.4
See Also:
Serialized Form

Constructor Summary
AssertionError()
           Constructs an instance without a message.
AssertionError(boolean detailMessage)
           Constructs an instance with a message that is the String.valueOf(boolean) of the boolean passed.
AssertionError(char detailMessage)
           Constructs an instance with a message that is the String.valueOf(char) of the char passed.
AssertionError(double detailMessage)
           Constructs an instance with a message that is the String.valueOf(double) of the double passed.
AssertionError(float detailMessage)
           Constructs an instance with a message that is the String.valueOf(float) of the float passed.
AssertionError(int detailMessage)
           Constructs an instance with a message that is the String.valueOf(int) of the int passed.
AssertionError(long detailMessage)
           Constructs an instance with a message that is the String.valueOf(long) of the long passed.
AssertionError(java.lang.Object detailMessage)
           Constructs an instance with a message that is the String.valueOf(Object) of the object passed.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssertionError

public AssertionError()

Constructs an instance without a message.


AssertionError

public AssertionError(java.lang.Object detailMessage)

Constructs an instance with a message that is the String.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.

AssertionError

public AssertionError(boolean detailMessage)

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

Parameters:
detailMessage - The value to be converted into the message.

AssertionError

public AssertionError(char detailMessage)

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

Parameters:
detailMessage - The value to be converted into the message.

AssertionError

public AssertionError(int detailMessage)

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

Parameters:
detailMessage - The value to be converted into the message.

AssertionError

public AssertionError(long detailMessage)

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

Parameters:
detailMessage - The value to be converted into the message.

AssertionError

public AssertionError(float detailMessage)

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

Parameters:
detailMessage - The value to be converted into the message.

AssertionError

public AssertionError(double detailMessage)

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

Parameters:
detailMessage - The value to be converted into the message.