Class SourceTextNotAvailableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.codehaus.groovy.runtime.powerassert.SourceTextNotAvailableException
- All Implemented Interfaces:
Serializable
Indicates that the source text for an assertion statement is not available.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSourceTextNotAvailableException(AssertStatement stat, SourceUnit unit, String msg) Creates an exception describing why the source text for an assertion could not be obtained. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SourceTextNotAvailableException
Creates an exception describing why the source text for an assertion could not be obtained.The constructor accepts an
AssertStatementso the generated message can include the asserted expression text.- Parameters:
stat- the assertion statement whose source text was requestedunit- the source unit containing the assertion statementmsg- the failure reason to include in the generated message
-