Class GroovyScriptException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.avoka.core.groovy.runtime.GroovyScriptException
All Implemented Interfaces:
Serializable

public class GroovyScriptException extends RuntimeException
Provides a Groovy Script execution exception class.
Since:
4.0.0
See Also:
  • Constructor Details

    • GroovyScriptException

      public GroovyScriptException(String msg)
      Create a GroovyScriptException for the given message.
      Parameters:
      msg - the error message
      Since:
      4.2.0
    • GroovyScriptException

      public GroovyScriptException(Throwable error, int numberImports)
      Create a GroovyScriptException for the given cause.
      Parameters:
      error - the cause of the Groovy runtime error
      numberImports - the number of imports in compiled script
  • Method Details

    • getScriptError

      public String getScriptError()
      Return the debugging script error for the given Groovy exception.
      Returns:
      the debugging script error for the given Groovy exception