view src/luan/LuanRuntimeException.java @ 1801:32e77b071e09 default tip

webserver logging
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 12 Mar 2024 09:28:39 -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);
	}
}