|
1 |
| package edu.rice.cs.dynamicjava.interpreter; |
|
2 |
| |
|
3 |
| import java.io.PrintWriter; |
|
4 |
| |
|
5 |
| import koala.dynamicjava.tree.SourceInfo; |
|
6 |
| |
|
7 |
| |
|
8 |
| public class InternalException extends InterpreterException implements SourceInfo.Wrapper { |
|
9 |
| |
|
10 |
| private final SourceInfo _si; |
|
11 |
| |
|
12 |
0
| public InternalException(RuntimeException e, SourceInfo si) { super(e); _si = si; }
|
|
13 |
| |
|
14 |
0
| public SourceInfo getSourceInfo() { return _si; }
|
|
15 |
| |
|
16 |
0
| public void printUserMessage(PrintWriter out) {
|
|
17 |
0
| out.println("Internal error at " + _si);
|
|
18 |
0
| getCause().printStackTrace(out);
|
|
19 |
| } |
|
20 |
| |
|
21 |
| } |