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 5.1.11 of The Java Language Specification), regardless of the type of expression.
Modifier and Type | Field and Description |
---|---|
private static final long |
Access | Constructor and Description |
---|---|
public | |
private | AssertionError(String detailMessage)
This internal constructor does no processing on its string argument, even if it is a null reference. |
public | AssertionError(Object
value to be used in constructing detail message detailMessage)Constructs an AssertionError with its detail message derived from the specified object, which is converted to a string as defined in section 5.1.11 of The Java Language Specification. |
public | AssertionError(boolean
value to be used in constructing detail message detailMessage)Constructs an AssertionError with its detail message derived
from the specified |
public | AssertionError(char
value to be used in constructing detail message detailMessage)Constructs an AssertionError with its detail message derived
from the specified |
public | AssertionError(int
value to be used in constructing detail message detailMessage)Constructs an AssertionError with its detail message derived
from the specified |
public | AssertionError(long
value to be used in constructing detail message detailMessage)Constructs an AssertionError with its detail message derived
from the specified |
public | AssertionError(float
value to be used in constructing detail message detailMessage)Constructs an AssertionError with its detail message derived
from the specified |
public | AssertionError(double
value to be used in constructing detail message detailMessage)Constructs an AssertionError with its detail message derived
from the specified |
public | AssertionError(String
the detail message, may be message, Throwable null the cause, may be cause)null Constructs a new |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID Hides java. |
AssertionError | back to summary |
---|---|
public AssertionError() Constructs an AssertionError with no detail message. |
AssertionError | back to summary |
---|---|
private AssertionError(String detailMessage) This internal constructor does no processing on its string argument, even if it is a null reference. The public constructors will never call this constructor with a null argument. |
AssertionError | back to summary |
---|---|
public AssertionError(Object detailMessage) Constructs an AssertionError with its detail message derived from the specified object, which is converted to a string as defined in section 5.1.11 of The Java Language Specification.
If the specified object is an instance of
|
AssertionError | back to summary |
---|---|
public AssertionError(boolean detailMessage) Constructs an AssertionError with its detail message derived
from the specified
|
AssertionError | back to summary |
---|---|
public AssertionError(char detailMessage) Constructs an AssertionError with its detail message derived
from the specified
|
AssertionError | back to summary |
---|---|
public AssertionError(int detailMessage) Constructs an AssertionError with its detail message derived
from the specified
|
AssertionError | back to summary |
---|---|
public AssertionError(long detailMessage) Constructs an AssertionError with its detail message derived
from the specified
|
AssertionError | back to summary |
---|---|
public AssertionError(float detailMessage) Constructs an AssertionError with its detail message derived
from the specified
|
AssertionError | back to summary |
---|---|
public AssertionError(double detailMessage) Constructs an AssertionError with its detail message derived
from the specified
|
AssertionError | back to summary |
---|---|
public AssertionError(String message, Throwable cause) Constructs a new Note that the detail message associated with
|