AssertionError

Class AssertionError

All Implemented Interfaces:
Serializable
public class AssertionError
extends Error

Thrown to indicate that an assertion has failed.

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 defin