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

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--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,v 1.5 2002/02/08 14:22:21 brianstoler Exp $
See Also:
Serialized Form

Field Summary
private  int _location
           
 
Fields inherited from class java.lang.Throwable
backtrace, detailMessage, serialVersionUID
 
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, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, printStackTrace0, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

_location

private final int _location
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.