Package com.avoka.core.groovy.runtime
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GroovyScriptException(String msg)
Create a GroovyScriptException for the given message.GroovyScriptException(Throwable error, int numberImports)
Create a GroovyScriptException for the given cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getScriptError()
Return the debugging script error for the given Groovy exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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 errornumberImports
- the number of imports in compiled script
-
-
Method Detail
-
getScriptError
public String getScriptError()
Return the debugging script error for the given Groovy exception.- Returns:
- the debugging script error for the given Groovy exception
-
-