java.lang.Objectjava.lang.Throwable
java.lang.Error
java.lang.AssertionError
All Implemented Interfaces:
Serializable
The seven one-argument public constructors provided by this class ensure that the assertion error returned by the invocation:
new AssertionError(expression)
has as its detail message the string conversion of
expression (as defined in section 15.18.1.1 of
The Java™ Language Specification),
regardless of the type of expression.1.4 - | Fields inherited from java.lang.Error: |
|---|
| serialVersionUID |
| Constructor: |
|---|
|
If the specified object is an instance of {@code Throwable}, it becomes the cause of the newly constructed assertion error.
|
boolean, which is converted to
a string as defined in section 15.18.1.1 of
The Java™ Language Specification.
|
char, which is converted to a
string as defined in section 15.18.1.1 of
The Java™ Language Specification.
|
int, which is converted to a
string as defined in section 15.18.1.1 of
The Java™ Language Specification.
|
long, which is converted to a
string as defined in section 15.18.1.1 of
The Java™ Language Specification.
|
float, which is converted to a
string as defined in section 15.18.1.1 of
The Java™ Language Specification.
|
double, which is converted to a
string as defined in section 15.18.1.1 of
The Java™ Language Specification.
|
Note that the detail message associated with {@code cause} is not automatically incorporated in this error's detail message.
|
| Methods from java.lang.Throwable: |
|---|
| addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getStackTraceDepth, getStackTraceElement, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods from java.lang.Object: |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |