package compiler.language.conceptual;

/*
 * Created on 29 Mar 2011
 */

/**
 * An exception that is thrown when resolve() is called on an object which does not have enough data to know whether or not it can resolve a name.
 * If this is thrown, it indicates that an object needs further initialisation.
 * @author Anthony Bryant
 */
public class UnresolvableException extends Exception
{
  private static final long serialVersionUID = 1L;

  /**
   * Default constructor.
   */
  public UnresolvableException()
  {
    // do nothing
  }

  /**
   * Creates a new UnresolvableException with the specified message.
   * @param message - the message to embed in this exception
   */
  public UnresolvableException(String message)
  {
    super(message);
  }
}

@@ -32,16 +32,57 @@
 ptual;%0A%0A
+import compiler.language.ast.ParseInfo;%0A%0A
 /*%0A * Cr
@@ -481,102 +481,36 @@
 %0A%0A  
-/**%0A   * Default constructor.%0A   */%0A  public UnresolvableException()%0A  %7B%0A    // do nothing%0A  %7D
+private ParseInfo parseInfo;
 %0A%0A  
@@ -643,16 +643,93 @@
 ception%0A
+   * @param parseInfo - the ParseInfo of the name that could not be resolved%0A
    */%0A  
@@ -771,16 +771,37 @@
  message
+, ParseInfo parseInfo
 )%0A  %7B%0A  
@@ -820,12 +820,172 @@
 age);%0A  
-%7D
+  this.parseInfo = parseInfo;%0A  %7D%0A%0A  /**%0A   * @return the parseInfo of the unresolved name%0A   */%0A  public ParseInfo getParseInfo()%0A  %7B%0A    return parseInfo;%0A  %7D%0A
 %0A%7D%0A

Add parameters to UnresolvableException