Mercurial Hosting > luan
view src/luan/LuanRuntimeException.java @ 1849:9f2680fe532b
better proc handling
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 21 Feb 2025 12:23:56 -0700 |
parents | 46cf5137cb6b |
children |
line wrap: on
line source
package luan; import java.io.PrintWriter; import java.io.PrintStream; public final class LuanRuntimeException extends RuntimeException { public LuanRuntimeException(LuanException e) { super(e); } @Override public void printStackTrace(PrintStream s) { LuanException luanException = (LuanException)getCause(); s.print("Luan: "); s.println(luanException.luanStackTrace()); s.print("Caused by: "); super.printStackTrace(s); } @Override public void printStackTrace(PrintWriter s) { LuanException luanException = (LuanException)getCause(); s.print("Luan: "); s.println(luanException.luanStackTrace()); s.print("Caused by: "); super.printStackTrace(s); } }