Top Description Fields Constructors Methods
org.stringtemplate.v4.misc

public Class STRuntimeMessage

extends STMessage
Class Inheritance
Imports
org.stringtemplate.v4.InstanceScope, .Interpreter

Used to track errors that occur in the ST interpreter.

Field Summary

Modifier and TypeField and Description
pack-priv final Interpreter
interp

Which interpreter was executing?

public final int
ip

Where error occurred in bytecode memory.

public final InstanceScope
Inherited from org.stringtemplate.v4.misc.STMessage:
argarg2arg3causeerrorself

Constructor Summary

AccessConstructor and Description
public
STRuntimeMessage(Interpreter interp, ErrorType error, int ip)

public
STRuntimeMessage(Interpreter interp, ErrorType error, int ip, InstanceScope scope)

public
STRuntimeMessage(Interpreter interp, ErrorType error, int ip, InstanceScope scope, Object arg)

public
STRuntimeMessage(Interpreter interp, ErrorType error, int ip, InstanceScope scope, Throwable e, Object arg)

public
STRuntimeMessage(Interpreter interp, ErrorType error, int ip, InstanceScope scope, Throwable e, Object arg, Object arg2)

public
STRuntimeMessage(Interpreter interp, ErrorType error, int ip, InstanceScope scope, Throwable e, Object arg, Object arg2, Object arg3)

Method Summary

Modifier and TypeMethod and Description
public String
getSourceLocation()

Given an IP (code location), get it's range in source template then return it's template line:col.

public String
toString()

Overrides org.stringtemplate.v4.misc.STMessage.toString.

Returns a string representation of the object.

Field Detail

interpback to summary
pack-priv final Interpreter interp

Which interpreter was executing? If null, can be IO error or bad URL etc...

ipback to summary
public final int ip

Where error occurred in bytecode memory.

scopeback to summary
public final InstanceScope scope

Constructor Detail

STRuntimeMessageback to summary
public STRuntimeMessage(Interpreter interp, ErrorType error, int ip)
STRuntimeMessageback to summary
public STRuntimeMessage(Interpreter interp, ErrorType error, int ip, InstanceScope scope)
STRuntimeMessageback to summary
public STRuntimeMessage(Interpreter interp, ErrorType error, int ip, InstanceScope scope, Object arg)
STRuntimeMessageback to summary
public STRuntimeMessage(Interpreter interp, ErrorType error, int ip, InstanceScope scope, Throwable e, Object arg)
STRuntimeMessageback to summary
public STRuntimeMessage(Interpreter interp, ErrorType error, int ip, InstanceScope scope, Throwable e, Object arg, Object arg2)
STRuntimeMessageback to summary
public STRuntimeMessage(Interpreter interp, ErrorType error, int ip, InstanceScope scope, Throwable e, Object arg, Object arg2, Object arg3)

Method Detail

getSourceLocationback to summary
public String getSourceLocation()

Given an IP (code location), get it's range in source template then return it's template line:col.

toStringback to summary
public String toString()

Overrides org.stringtemplate.v4.misc.STMessage.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override