Package groovy.lang
Class GroovyRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- groovy.lang.GroovyRuntimeException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CacheAccessControlException,CompilationFailedException,IncorrectClosureArgumentsException,InvokerInvocationException,MethodSelectionException,MissingClassException,MissingFieldException,MissingMethodException,MissingPropertyException,RuntimeParserException,SpreadListEvaluatingException,SpreadMapEvaluatingException
public class GroovyRuntimeException extends java.lang.RuntimeExceptionAn exception thrown by the interpreter- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GroovyRuntimeException()GroovyRuntimeException(java.lang.String message)GroovyRuntimeException(java.lang.String message, java.lang.Throwable cause)GroovyRuntimeException(java.lang.String message, ASTNode node)GroovyRuntimeException(java.lang.Throwable t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetLocationText()java.lang.StringgetMessage()java.lang.StringgetMessageWithoutLocationText()ModuleNodegetModule()ASTNodegetNode()voidsetModule(ModuleNode module)
-
-
-
Constructor Detail
-
GroovyRuntimeException
public GroovyRuntimeException()
-
GroovyRuntimeException
public GroovyRuntimeException(java.lang.String message)
-
GroovyRuntimeException
public GroovyRuntimeException(java.lang.String message, ASTNode node)
-
GroovyRuntimeException
public GroovyRuntimeException(java.lang.String message, java.lang.Throwable cause)
-
GroovyRuntimeException
public GroovyRuntimeException(java.lang.Throwable t)
-
-
Method Detail
-
setModule
public void setModule(ModuleNode module)
-
getModule
public ModuleNode getModule()
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
getNode
public ASTNode getNode()
-
getMessageWithoutLocationText
public java.lang.String getMessageWithoutLocationText()
-
getLocationText
protected java.lang.String getLocationText()
-
-