Package: org.codehaus.groovy.runtime.powerassert

## [Java] Class SourceTextNotAvailableException

- org.codehaus.groovy.runtime.powerassert.SourceTextNotAvailableException

-     public class SourceTextNotAvailableException
      extends RuntimeException

  Indicates that the source text for an assertion statement is not available.

- - ### Constructor Summary

    Constructors
    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.

  - ### Inherited Methods Summary

    Inherited Methods
    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`

- - ### Constructor Detail

    - #### public SourceTextNotAvailableException(AssertStatement stat, SourceUnit unit, String msg)

      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.

      Parameters:
        `stat` - the assertion statement whose source text was requested
        `unit` - the source unit containing the assertion statement
        `msg` - the failure reason to include in the generated message