1 duncan 1.1.2.1 // InterpretedThrowable.java, created Mon Dec 28 01:27:53 1998 by cananian 2 cananian 1.1.2.2 // Copyright (C) 1998 C. Scott Ananian <cananian@alumni.princeton.edu> 3 cananian 1.1.2.2 // Licensed under the terms of the GNU GPL; see COPYING for details. 4 duncan 1.1.2.1 package harpoon.Interpret.Tree; 5 duncan 1.1.2.1 6 duncan 1.1.2.1 /** 7 duncan 1.1.2.1 * <code>InterpretedThrowable</code> is a wrapper for an exception within 8 duncan 1.1.2.1 * the interpreter. 9 duncan 1.1.2.1 * 10 duncan 1.1.2.1 * @author C. Scott Ananian <cananian@alumni.princeton.edu> 11 cananian 1.2 * @version $Id: InterpretedThrowable.java,v 1.2 2002/02/25 21:05:57 cananian Exp $ 12 duncan 1.1.2.1 */ 13 duncan 1.1.2.1 final class InterpretedThrowable extends RuntimeException { 14 duncan 1.1.2.1 final ObjectRef ex; 15 duncan 1.1.2.1 final String[] stackTrace; 16 duncan 1.1.2.1 /** Creates a <code>InterpretedThrowable</code>. */ 17 duncan 1.1.2.1 InterpretedThrowable(ObjectRef ex, String[] st) { 18 duncan 1.1.2.1 this.ex = ex; this.stackTrace = st; 19 duncan 1.1.2.1 } 20 duncan 1.1.2.1 InterpretedThrowable(ObjectRef ex, StaticState ss) { 21 duncan 1.1.2.1 this.ex = ex; this.stackTrace = ss.stackTrace(); 22 duncan 1.1.2.1 } 23 cananian 1.2 }