dk.brics.grammar.parser
Class ParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by dk.brics.grammar.parser.ParseException
All Implemented Interfaces:
Serializable

public class ParseException
extends Exception

Parse error exception.

See Also:
Serialized Form

Method Summary
 Location getLocation()
          Returns the location where the parser got stuck.
 String getMessage()
          Returns the detail message string
 void setLocation(Location loc)
          Sets the location.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getLocation

public Location getLocation()
Returns the location where the parser got stuck.

Returns:
location

getMessage

public String getMessage()
Returns the detail message string

Overrides:
getMessage in class Throwable
Returns:
exception message

setLocation

public void setLocation(Location loc)
Sets the location.

Parameters:
loc - location


Copyright © 2005-2008 Anders Møller.