view src/luan/LuanRuntimeException.java @ 1802:ca98dee04e08 default tip

add Parsers.json_null
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 21 Apr 2024 21:25:15 -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);
	}
}