Mercurial Hosting > luan
view src/luan/LuanRuntimeException.java @ 1768:ad53577872cc
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 07 Jun 2023 09:26:10 -0600 |
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); } }