public class SourceAssertionError extends AssertionError
AssertionError
that also contains a Source
for more context.Constructor and Description |
---|
SourceAssertionError(String detailMessage,
String sourceLabel,
Source source)
Creates a new instance of the
SourceAssertionError class with the given parameters. |
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
Source |
getSource()
Returns the source context of this error.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public Source getSource()
public String getMessage()
getMessage
in class Throwable