public class AssertException extends FatalException
An exception that is thrown when an assertion fails.
Modifier | Constructor and Description |
---|---|
|
AssertException()
Default constructor.
|
protected |
AssertException(java.lang.String message,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static AssertException |
withMessage(java.lang.String message)
Return a new exception with the specified message text.
|
getCause, getMessage, setCause, setMessage, toString
protected AssertException(java.lang.String message, java.lang.Throwable cause)
public AssertException()
Default constructor.
public static AssertException withMessage(java.lang.String message)
Return a new exception with the specified message text.
message
- Message text.