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
,YamlRuntimeException
public class GroovyRuntimeException
extends java.lang.RuntimeException
An 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
Modifier and Type Method Description protected java.lang.String
getLocationText()
java.lang.String
getMessage()
java.lang.String
getMessageWithoutLocationText()
ModuleNode
getModule()
ASTNode
getNode()
void
setModule(ModuleNode module)
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
GroovyRuntimeException
public GroovyRuntimeException() -
GroovyRuntimeException
public GroovyRuntimeException(java.lang.String message) -
GroovyRuntimeException
-
GroovyRuntimeException
public GroovyRuntimeException(java.lang.String message, java.lang.Throwable cause) -
GroovyRuntimeException
public GroovyRuntimeException(java.lang.Throwable t)
-
-
Method Details
-
setModule
-
getModule
-
getMessage
public java.lang.String getMessage()- Overrides:
getMessage
in classjava.lang.Throwable
-
getNode
-
getMessageWithoutLocationText
public java.lang.String getMessageWithoutLocationText() -
getLocationText
protected java.lang.String getLocationText()
-