()
| 121 | } |
| 122 | |
| 123 | public String getScriptStackTrace() |
| 124 | { |
| 125 | if ( callstack == null ) |
| 126 | return "<Unknown>"; |
| 127 | |
| 128 | String trace = ""; |
| 129 | CallStack stack = callstack.copy(); |
| 130 | while ( stack.depth() > 0 ) |
| 131 | { |
| 132 | NameSpace ns = stack.pop(); |
| 133 | SimpleNode node = ns.getNode(); |
| 134 | if ( ns.isMethod ) |
| 135 | { |
| 136 | trace = trace + "\nCalled from method: " + ns.getName(); |
| 137 | if ( node != null ) |
| 138 | trace += " : at Line: "+ node.getLineNumber() |
| 139 | + " : in file: "+ node.getSourceFile() |
| 140 | + " : "+node.getText(); |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | return trace; |
| 145 | } |
| 146 | |
| 147 | public String getRawMessage() { return message; } |
| 148 |
no test coverage detected