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 4419 2008-03-27 06:58:07Z rcartwright $
- See Also:
- Serialized Form
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 |
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.