public class ScriptWarning
extends java.lang.Object
RuntimeWarningWatcher
Modifier and Type | Field and Description |
---|---|
protected int |
line |
protected java.lang.String |
message |
protected ScriptInstance |
script |
protected java.lang.String |
source |
protected boolean |
trace |
Constructor and Description |
---|
ScriptWarning(ScriptInstance _script,
java.lang.String _message,
int _line) |
ScriptWarning(ScriptInstance _script,
java.lang.String _message,
int _line,
boolean _trace) |
Modifier and Type | Method and Description |
---|---|
int |
getLineNumber()
returns the line number in the source script where the runtime error/warning occured
|
java.lang.String |
getMessage()
returns a short synopsis of what the warnng is
|
java.lang.String |
getNameShort()
returns just the filename of the source script
|
java.lang.String |
getScriptName()
returns the full path for the source script
|
ScriptInstance |
getSource()
returns the ScriptInstance object that was the source of this runtime error
|
boolean |
isDebugTrace()
is this a trace message for one of the trace debug options
|
java.lang.String |
toString()
returns a nicely formatted string representation of this runtime warning.
|
protected ScriptInstance script
protected java.lang.String message
protected int line
protected boolean trace
protected java.lang.String source
public ScriptWarning(ScriptInstance _script, java.lang.String _message, int _line)
public ScriptWarning(ScriptInstance _script, java.lang.String _message, int _line, boolean _trace)
public boolean isDebugTrace()
public ScriptInstance getSource()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getMessage()
public int getLineNumber()
public java.lang.String getScriptName()
public java.lang.String getNameShort()