Constructor and Description |
---|
Assert() |
Modifier and Type | Method and Description |
---|---|
void |
_assert(boolean cond)
Checks that the given condition is true.
|
void |
_assert(boolean cond,
String message)
Checks that the given condition is true.
|
void |
dumpStack()
Print a stack trace
|
void |
error(String str)
This method should be called whenever an error is encountered.
|
void |
exit(int rc) |
void |
fail(String message)
Logs a message and traceback, then exits.
|
protected boolean |
getVerifyAssertionsConstant() |
public Assert()
protected final boolean getVerifyAssertionsConstant()
getVerifyAssertionsConstant
in class Assert
true
if assertions should be verifiedpublic final void error(String str)
str
- A string describing the error condition.public final void fail(String message)
Assert
public final void exit(int rc)
public final void _assert(boolean cond)
Assert
VM.VERIFY_ASSERTIONS
.public final void _assert(boolean cond, String message)
Assert
VM.VERIFY_ASSERTIONS
.