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

public Class STMessage

extends Object
Class Inheritance
Known Direct Subclasses
org.stringtemplate.v4.misc.STRuntimeMessage, org.stringtemplate.v4.misc.STCompiletimeMessage, org.stringtemplate.v4.misc.STGroupCompiletimeMessage, org.stringtemplate.v4.misc.STLexerMessage
Imports
org.antlr.runtime.Token, org.stringtemplate.v4.ST, java.io.PrintWriter, .StringWriter

Upon error, ST creates an STMessage or subclass instance and notifies the listener. This root class is used for IO and internal errors.
See Also
STRuntimeMessage, STCompiletimeMessage

Field Summary

Modifier and TypeField and Description
public Object
public Object
public Object
public Throwable
public ErrorType
public ST
self

if in debug mode, has created instance, add attr events and eval template events.

Constructor Summary

AccessConstructor and Description
public
public
STMessage(ErrorType error, ST self)

public
STMessage(ErrorType error, ST self, Throwable cause)

public
STMessage(ErrorType error, ST self, Throwable cause, Object arg)

public
STMessage(ErrorType error, ST self, Throwable cause, Token where, Object arg)

public
STMessage(ErrorType error, ST self, Throwable cause, Object arg, Object arg2)

public
STMessage(ErrorType error, ST self, Throwable cause, Object arg, Object arg2, Object arg3)

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

argback to summary
public Object arg
arg2back to summary
public Object arg2
arg3back to summary
public Object arg3
causeback to summary
public Throwable cause
errorback to summary
public ErrorType error
selfback to summary
public ST self

if in debug mode, has created instance, add attr events and eval template events.

Constructor Detail

STMessageback to summary
public STMessage(ErrorType error)
STMessageback to summary
public STMessage(ErrorType error, ST self)
STMessageback to summary
public STMessage(ErrorType error, ST self, Throwable cause)
STMessageback to summary
public STMessage(ErrorType error, ST self, Throwable cause, Object arg)
STMessageback to summary
public STMessage(ErrorType error, ST self, Throwable cause, Token where, Object arg)
Annotations
@SuppressWarnings:ChainingConstructorIgnoresParameter
STMessageback to summary
public STMessage(ErrorType error, ST self, Throwable cause, Object arg, Object arg2)
STMessageback to summary
public STMessage(ErrorType error, ST self, Throwable cause, Object arg, Object arg2, Object arg3)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override