|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sleep.error.ScriptWarning
public class ScriptWarning
A package for all information related to a runtime script warning. A runtime script warning occurs whenever something bad happens while executing a script. Something bad could include an exception being thrown by a bridge, a script trying to execute a non-existant function, a script trying to make a comparison with a non-existant predicate etc.
RuntimeWarningWatcher
Field Summary | |
---|---|
protected int |
line
|
protected java.lang.String |
message
|
protected ScriptInstance |
script
|
protected java.lang.String |
source
|
protected boolean |
trace
|
Constructor Summary | |
---|---|
ScriptWarning(ScriptInstance _script,
java.lang.String _message,
int _line)
|
|
ScriptWarning(ScriptInstance _script,
java.lang.String _message,
int _line,
boolean _trace)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ScriptInstance script
protected java.lang.String message
protected int line
protected boolean trace
protected java.lang.String source
Constructor Detail |
---|
public ScriptWarning(ScriptInstance _script, java.lang.String _message, int _line)
public ScriptWarning(ScriptInstance _script, java.lang.String _message, int _line, boolean _trace)
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |