edu.uci.eecs.doc.cascade.controlflow
Class UnknownLineNumberException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by edu.uci.eecs.doc.cascade.controlflow.UnknownLineNumberException
All Implemented Interfaces:
Serializable

public class UnknownLineNumberException
extends Exception

An exception indicating that the line of source code on which a given node begins could not be determined.

Author:
Trevor Harmon
See Also:
Node.getSourceCodeLineNumber(), Serialized Form

Constructor Summary
UnknownLineNumberException(Node node)
          Creates a new UnknownLineNumberException object.
UnknownLineNumberException(Node node, String message)
          Creates a new UnknownLineNumberException object.
 
Method Summary
 String getMessage()
          Returns a message describing the exception.
 Node getNode()
          Returns the node whose line number could not be determined.
 
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
 

Constructor Detail

UnknownLineNumberException

public UnknownLineNumberException(Node node)
Creates a new UnknownLineNumberException object.

Parameters:
node - the node whose line number could not be determined

UnknownLineNumberException

public UnknownLineNumberException(Node node,
                                  String message)
Creates a new UnknownLineNumberException object.

Parameters:
node - the node whose line number could not be determined
message - a message describing the problem
Method Detail

getNode

public Node getNode()
Returns the node whose line number could not be determined.

Returns:
the node whose line number could not be determined

getMessage

public String getMessage()
Returns a message describing the exception.

Overrides:
getMessage in class Throwable
Returns:
a descriptive message