edu.rice.cs.drjava.model
Class AlreadyOpenException

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

public class AlreadyOpenException
extends Exception

Indicates that the file attempting to be opened is already open.

Version:
$Id: AlreadyOpenException.java 4447 2008-04-18 16:06:34Z rcartwright $
See Also:
Serialized Form

Constructor Summary
AlreadyOpenException(OpenDefinitionsDocument doc)
          Exception indicating that the requested file is already open.
AlreadyOpenException(OpenDefinitionsDocument[] docs)
           
 
Method Summary
 OpenDefinitionsDocument getOpenDocument()
           
 OpenDefinitionsDocument[] getOpenDocuments()
           
 
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

AlreadyOpenException

public AlreadyOpenException(OpenDefinitionsDocument[] docs)

AlreadyOpenException

public AlreadyOpenException(OpenDefinitionsDocument doc)
Exception indicating that the requested file is already open.

Parameters:
doc - the currently open document
Method Detail

getOpenDocument

public OpenDefinitionsDocument getOpenDocument()
Returns:
the currently open document for the requested file

getOpenDocuments

public OpenDefinitionsDocument[] getOpenDocuments()