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
Method Summary |
int |
getLocation()
Returns the location of the problem. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
_location
private final int _location
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.
getLocation
public int getLocation()
- Returns the location of the problem.