Package org.stringtemplate.v4.misc
Class STRuntimeMessage
- java.lang.Object
-
- org.stringtemplate.v4.misc.STMessage
-
- org.stringtemplate.v4.misc.STRuntimeMessage
-
public class STRuntimeMessage extends STMessage
Used to track errors that occur in the ST interpreter.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Interpreter
interp
Which interpreter was executing? Ifnull
, can be IO error or bad URL etc...int
ip
Where error occurred in bytecode memory.InstanceScope
scope
-
Constructor Summary
Constructors Constructor Description STRuntimeMessage(Interpreter interp, ErrorType error, int ip)
STRuntimeMessage(Interpreter interp, ErrorType error, int ip, InstanceScope scope)
STRuntimeMessage(Interpreter interp, ErrorType error, int ip, InstanceScope scope, java.lang.Object arg)
STRuntimeMessage(Interpreter interp, ErrorType error, int ip, InstanceScope scope, java.lang.Throwable e, java.lang.Object arg)
STRuntimeMessage(Interpreter interp, ErrorType error, int ip, InstanceScope scope, java.lang.Throwable e, java.lang.Object arg, java.lang.Object arg2)
STRuntimeMessage(Interpreter interp, ErrorType error, int ip, InstanceScope scope, java.lang.Throwable e, java.lang.Object arg, java.lang.Object arg2, java.lang.Object arg3)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getSourceLocation()
Given an IP (code location), get it's range in source template then return it's template line:col.java.lang.String
toString()
-
-
-
Field Detail
-
interp
final Interpreter interp
Which interpreter was executing? Ifnull
, can be IO error or bad URL etc...
-
ip
public final int ip
Where error occurred in bytecode memory.
-
scope
public final InstanceScope scope
-
-
Constructor Detail
-
STRuntimeMessage
public STRuntimeMessage(Interpreter interp, ErrorType error, int ip)
-
STRuntimeMessage
public STRuntimeMessage(Interpreter interp, ErrorType error, int ip, InstanceScope scope)
-
STRuntimeMessage
public STRuntimeMessage(Interpreter interp, ErrorType error, int ip, InstanceScope scope, java.lang.Object arg)
-
STRuntimeMessage
public STRuntimeMessage(Interpreter interp, ErrorType error, int ip, InstanceScope scope, java.lang.Throwable e, java.lang.Object arg)
-
STRuntimeMessage
public STRuntimeMessage(Interpreter interp, ErrorType error, int ip, InstanceScope scope, java.lang.Throwable e, java.lang.Object arg, java.lang.Object arg2)
-
STRuntimeMessage
public STRuntimeMessage(Interpreter interp, ErrorType error, int ip, InstanceScope scope, java.lang.Throwable e, java.lang.Object arg, java.lang.Object arg2, java.lang.Object arg3)
-
-