| java.lang.Object | |||
| ↳ | java.lang.Throwable | ||
| ↳ | java.lang.Error | ||
| ↳ | java.lang.AssertionError | ||
|
|
|
|
Thrown when an assertion has failed.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new
AssertionError with no message.
| |||||||||||
Constructs a new
AssertionError with the given detail message and cause.
| |||||||||||
Constructs a new
AssertionError with a message based on calling
valueOf(Object) with the specified object.
| |||||||||||
Constructs a new
AssertionError with a message based on calling
valueOf(boolean) with the specified boolean value.
| |||||||||||
Constructs a new
AssertionError with a message based on calling
valueOf(char) with the specified character value.
| |||||||||||
Constructs a new
AssertionError with a message based on calling
valueOf(int) with the specified integer value.
| |||||||||||
Constructs a new
AssertionError with a message based on calling
valueOf(long) with the specified long value.
| |||||||||||
Constructs a new
AssertionError with a message based on calling
valueOf(float) with the specified float value.
| |||||||||||
Constructs a new
AssertionError with a message based on calling
valueOf(double) with the specified double value.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||
|
| |||||||||||
Constructs a new AssertionError with the given detail message and cause.
| Parameters | |
|---|---|
detailMessage |
String
|
cause |
Throwable
|
Constructs a new AssertionError with a message based on calling
valueOf(Object) with the specified object. If the object
is an instance of Throwable, then it also becomes the cause of
this error.
| Parameters | |
|---|---|
detailMessage |
Object:
the object to be converted into the detail message and
optionally the cause.
|
Constructs a new AssertionError with a message based on calling
valueOf(boolean) with the specified boolean value.
| Parameters | |
|---|---|
detailMessage |
boolean:
the value to be converted into the message.
|
Constructs a new AssertionError with a message based on calling
valueOf(char) with the specified character value.
| Parameters | |
|---|---|
detailMessage |
char:
the value to be converted into the message.
|
Constructs a new AssertionError with a message based on calling
valueOf(int) with the specified integer value.
| Parameters | |
|---|---|
detailMessage |
int:
the value to be converted into the message.
|
Constructs a new AssertionError with a message based on calling
valueOf(long) with the specified long value.
| Parameters | |
|---|---|
detailMessage |
long:
the value to be converted into the message.
|
Constructs a new AssertionError with a message based on calling
valueOf(float) with the specified float value.
| Parameters | |
|---|---|
detailMessage |
float:
the value to be converted into the message.
|
Constructs a new AssertionError with a message based on calling
valueOf(double) with the specified double value.
| Parameters | |
|---|---|
detailMessage |
double:
the value to be converted into the message.
|