public class SourceTextNotAvailableException
extends RuntimeException
Indicates that the source text for an assertion statement is not available.
| Constructor and description |
|---|
SourceTextNotAvailableException(AssertStatement stat, SourceUnit unit, String msg)Creates an exception describing why the source text for an assertion could not be obtained. |
| Methods inherited from class | Name |
|---|---|
class RuntimeException |
addSuppressed, equals, fillInStackTrace, getCause, getClass, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, hashCode, initCause, notify, notifyAll, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString, wait, wait, wait |
Creates an exception describing why the source text for an assertion could not be obtained.
The constructor accepts an AssertStatement so the generated message can include the asserted expression text.
stat - the assertion statement whose source text was requestedunit - the source unit containing the assertion statementmsg - the failure reason to include in the generated messageCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.