MCPcopy Index your code
hub / github.com/beanshell/beanshell / getMessage

Method getMessage

src/bsh/EvalError.java:63–78  ·  view source on GitHub ↗

Print the error with line number and stack trace.

()

Source from the content-addressed store, hash-verified

61 Print the error with line number and stack trace.
62 */
63 public String getMessage()
64 {
65 String trace;
66 if ( node != null )
67 trace = " : at Line: "+ node.getLineNumber()
68 + " : in file: "+ node.getSourceFile()
69 + " : "+node.getText();
70 else
71 // Users should not normally see this.
72 trace = ": <at unknown location>";
73
74 if ( callstack != null )
75 trace = trace +"\n" + getScriptStackTrace();
76
77 return getRawMessage() + trace;
78 }
79
80 /**
81 Re-throw the error, prepending the specified message.

Callers 15

getValueMethod · 0.45
assignMethod · 0.45
invokeImplMethod · 0.45
toLHSMethod · 0.45
setVariableMethod · 0.45
loadScriptedCommandMethod · 0.45
toEvalErrorMethod · 0.45
evalMethod · 0.45
doNameMethod · 0.45
toClassMethod · 0.45
toEvalErrorMethod · 0.45
ModifiersMethod · 0.45

Calls 5

getScriptStackTraceMethod · 0.95
getRawMessageMethod · 0.95
getSourceFileMethod · 0.80
getTextMethod · 0.80
getLineNumberMethod · 0.45

Tested by

no test coverage detected