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

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

public class InvalidPackageException
extends Exception

An exception thrown by DefinitionsDocument.getPackageName() when the document contains an invalid package statement. This can happen if there is nothing between "package" and ";", or if there is no terminating semicolon ever.

Version:
$Id: InvalidPackageException.java 4419 2008-03-27 06:58:07Z rcartwright $
See Also:
Serialized Form

Constructor Summary
InvalidPackageException(int location, String message)
          Constructs a exception
 
Method Summary
 int getLocation()
          Returns the location of the problem.
 
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

InvalidPackageException

public InvalidPackageException(int location,
                               String message)
Constructs a exception

Parameters:
location - The location in the document where the invalid package statement begins.
message - Textual explanation of the problem.
Method Detail

getLocation

public int getLocation()
Returns the location of the problem.