org.oddjob.arooa
Class ArooaParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.oddjob.arooa.ArooaParseException
All Implemented Interfaces:
Serializable

public class ArooaParseException
extends Exception

An exception used when creation fails.

See Also:
Serialized Form

Constructor Summary
ArooaParseException(String message, Location location)
           
ArooaParseException(String message, Location location, Throwable t)
           
 
Method Summary
 Location getLocation()
          Returns the file location where the error occurred.
 String toString()
          Returns the location of the error and the error message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArooaParseException

public ArooaParseException(String message,
                           Location location)

ArooaParseException

public ArooaParseException(String message,
                           Location location,
                           Throwable t)
Method Detail

toString

public String toString()
Returns the location of the error and the error message.

Overrides:
toString in class Throwable
Returns:
the location of the error and the error message

getLocation

public Location getLocation()
Returns the file location where the error occurred.

Returns:
the file location where the error occurred.