Mercurial Hosting > luan
comparison src/luan/LuanRuntimeException.java @ 1685:46cf5137cb6b
misc fixes
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 08 Jun 2022 20:13:54 -0600 |
parents | 1a68fc55a80c |
children |
comparison
equal
deleted
inserted
replaced
1684:cfbecf7af56f | 1685:46cf5137cb6b |
---|---|
1 package luan; | 1 package luan; |
2 | |
3 import java.io.PrintWriter; | |
4 import java.io.PrintStream; | |
2 | 5 |
3 | 6 |
4 public final class LuanRuntimeException extends RuntimeException { | 7 public final class LuanRuntimeException extends RuntimeException { |
5 public LuanRuntimeException(LuanException e) { | 8 public LuanRuntimeException(LuanException e) { |
6 super(e); | 9 super(e); |
7 } | 10 } |
11 | |
12 @Override public void printStackTrace(PrintStream s) { | |
13 LuanException luanException = (LuanException)getCause(); | |
14 s.print("Luan: "); | |
15 s.println(luanException.luanStackTrace()); | |
16 s.print("Caused by: "); | |
17 super.printStackTrace(s); | |
18 } | |
19 | |
20 @Override public void printStackTrace(PrintWriter s) { | |
21 LuanException luanException = (LuanException)getCause(); | |
22 s.print("Luan: "); | |
23 s.println(luanException.luanStackTrace()); | |
24 s.print("Caused by: "); | |
25 super.printStackTrace(s); | |
26 } | |
8 } | 27 } |