public class AssertionError extends Error
| Constructor and Description |
|---|
AssertionError()
Constructs a new
AssertionError with no message. |
AssertionError(boolean detailMessage)
Constructs a new
AssertionError with a message based on calling
String.valueOf(boolean) with the specified boolean value. |
AssertionError(char detailMessage)
Constructs a new
AssertionError with a message based on calling
String.valueOf(char) with the specified character value. |
AssertionError(double detailMessage)
Constructs a new
AssertionError with a message based on calling
String.valueOf(double) with the specified double value. |
AssertionError(float detailMessage)
Constructs a new
AssertionError with a message based on calling
String.valueOf(float) with the specified float value. |
AssertionError(int detailMessage)
Constructs a new
AssertionError with a message based on calling
String.valueOf(int) with the specified integer value. |
AssertionError(long detailMessage)
Constructs a new
AssertionError with a message based on calling
String.valueOf(long) with the specified long value. |
AssertionError(Object detailMessage)
Constructs a new
AssertionError with a message based on calling
String.valueOf(Object) with the specified object. |
AssertionError(String detailMessage,
Throwable cause)
Constructs a new
AssertionError with the given detail message and cause. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic AssertionError()
AssertionError with no message.public AssertionError(String detailMessage, Throwable cause)
AssertionError with the given detail message and cause.public AssertionError(Object detailMessage)
AssertionError with a message based on calling
String.valueOf(Object) with the specified object. If the object
is an instance of Throwable, then it also becomes the cause of
this error.detailMessage - the object to be converted into the detail message and
optionally the cause.public AssertionError(boolean detailMessage)
AssertionError with a message based on calling
String.valueOf(boolean) with the specified boolean value.detailMessage - the value to be converted into the message.public AssertionError(char detailMessage)
AssertionError with a message based on calling
String.valueOf(char) with the specified character value.detailMessage - the value to be converted into the message.public AssertionError(int detailMessage)
AssertionError with a message based on calling
String.valueOf(int) with the specified integer value.detailMessage - the value to be converted into the message.public AssertionError(long detailMessage)
AssertionError with a message based on calling
String.valueOf(long) with the specified long value.detailMessage - the value to be converted into the message.public AssertionError(float detailMessage)
AssertionError with a message based on calling
String.valueOf(float) with the specified float value.detailMessage - the value to be converted into the message.public AssertionError(double detailMessage)
AssertionError with a message based on calling
String.valueOf(double) with the specified double value.detailMessage - the value to be converted into the message.