Constructors Summary |
---|
public AssertionError()Constructs a new {@code AssertionError} with no message.
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.
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.
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.
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.
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.
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.
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.
this(Double.toString(detailMessage));
|