edu.rice.cs.drjava.model.definitions
Class NoSuchDocumentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by edu.rice.cs.drjava.model.definitions.NoSuchDocumentException
All Implemented Interfaces:
Serializable

public class NoSuchDocumentException
extends RuntimeException

This exception is to be thrown when an OpenDefinitionsDocument was asked for its DefinitionsDocument and when the OpenDefinitionsDocument itself is not registered in the Document Cache. This could happen either if the OpenDefinitionsDocument was not correctly initialized (unlikely) or if the document was asked for after the OpenDefinitionsDocument was explicitly closed by calling doc.close(). For example, this exception is caught when changing the active definitions pane after the active pane had been closed (MainFrame.java).

See Also:
Serialized Form

Constructor Summary
NoSuchDocumentException(String msg)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoSuchDocumentException

public NoSuchDocumentException(String msg)
Parameters:
msg - The message to send along with this exception