Print the error with line number and stack trace.
()
| 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. |
no test coverage detected