Class SourceTextNotAvailableException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.codehaus.groovy.runtime.powerassert.SourceTextNotAvailableException
All Implemented Interfaces:
Serializable

public class SourceTextNotAvailableException extends RuntimeException
Indicates that the source text for an assertion statement is not available.
See Also:
  • Constructor Details

    • SourceTextNotAvailableException

      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