1 cananian 1.1.2.5 // PointerTypeChangedException.java, created Sat Mar 27 17:05:09 1999 by duncan 2 cananian 1.1.2.4 // Copyright (C) 1998 Duncan Bryce <duncan@lcs.mit.edu> 3 cananian 1.1.2.4 // 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 * This exception is thrown when the type of a <code>Pointer</code> 8 duncan 1.1.2.1 * within the Tree interpreter is changed. This is necessary because 9 duncan 1.1.2.1 * the type of a <code>Pointer</code> cannot be determined when it is 10 duncan 1.1.2.1 * created. 11 duncan 1.1.2.1 * 12 duncan 1.1.2.1 * @author Duncan Bryce <duncan@lcs.mit.edu> 13 cananian 1.2 * @version $Id: PointerTypeChangedException.java,v 1.2 2002/02/25 21:06:01 cananian Exp $ 14 duncan 1.1.2.1 */ 15 duncan 1.1.2.1 public class PointerTypeChangedException extends RuntimeException { 16 cananian 1.1.2.3 /** The <code>Pointer</code> whose type is changed. */ 17 duncan 1.1.2.1 public Pointer ptr; 18 duncan 1.1.2.1 19 duncan 1.1.2.1 /** Class constructor */ 20 duncan 1.1.2.1 public PointerTypeChangedException(Pointer ptr) { 21 duncan 1.1.2.1 super(); 22 duncan 1.1.2.1 this.ptr = ptr; 23 duncan 1.1.2.1 } 24 cananian 1.2 }