Class CompileException

All Implemented Interfaces:
Serializable

public class CompileException extends GrengineException
Exception thrown when (Groovy script) compilation failed.
Since:
1.0
Author:
Alain Stalder, Made in Switzerland.
See Also:
  • Constructor Details

    • CompileException

      public CompileException(String message, Sources sources)
      constructor from exception message and sources for which compilation failed.
      Parameters:
      message - message
      sources - sources for which compilation failed
      Since:
      1.0
    • CompileException

      public CompileException(String message, Throwable cause, Sources sources)
      constructor from exception message, causing throwable and sources for which compilation failed.
      Parameters:
      message - message
      cause - cause
      sources - sources for which compilation failed
      Since:
      1.0
  • Method Details

    • getSources

      public Sources getSources()
      gets sources for which compilation failed; null after exception deserialization.
      Returns:
      sources for which compilation failed, or null if the exception was deserialized
      Since:
      1.0
    • getSourcesAsString

      public String getSourcesAsString()
      gets the sources for which compilation failed - converted to a string; survives exception deserialization.
      Returns:
      sources for which compilation failed converted to a string, or empty string if sources were null
      Since:
      3.2.0